Skip to content
Snippets Groups Projects

bugfix: trying to fix exclusion of circles from serializer

Merged Benoit Alessandroni requested to merge patch-4 into master
1 file
+ 3
2
Compare changes
  • Side-by-side
  • Inline
+ 3
2
@@ -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']
Loading