Advertisement
MikeHibbert

Untitled

Oct 6th, 2015
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.20 KB | None | 0 0
  1. class PollSubjectSerializer(serializers.ModelSerializer):
  2.     votes = VoteSerializer(many=True)
  3.  
  4.     class Meta:
  5.         model = PollSubject
  6.         fields = ('id', 'name', 'votes', 'total_votes')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement