Skip to content
Snippets Groups Projects
Commit acf511e7 authored by Benoit Alessandroni's avatar Benoit Alessandroni
Browse files

Merge branch 'patch-4' into 'master'

bugfix: trying to fix exclusion of circles from serializer

See merge request !11
parents e31f9822 cdad1716
No related branches found
No related tags found
1 merge request!11bugfix: trying to fix exclusion of circles from serializer
Pipeline #6981 passed
...@@ -55,8 +55,9 @@ class Poll (Model): ...@@ -55,8 +55,9 @@ class Poll (Model):
circle = models.ForeignKey(Circle, null=True, related_name="polls") circle = models.ForeignKey(Circle, null=True, related_name="polls")
class Meta : class Meta :
serializer_fields = ['@id','created_at','debate','pollOptions','votes','author','title','image','hostingOrganisation','startDate','endDate','shortDescription','longDescription','tags'] serializer_fields = ['@id','created_at','debate','pollOptions','votes','author','title','image','circle',\
nested_fields = ['tags','votes','pollOptions','debate'] 'hostingOrganisation','startDate','endDate','shortDescription','longDescription','tags']
nested_fields = ['tags','votes','pollOptions','debate','circle']
anonymous_perms = ['view','add','change'] anonymous_perms = ['view','add','change']
authenticated_perms = ['inherit','add'] authenticated_perms = ['inherit','add']
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment