Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class PollSubjectSerializer(serializers.ModelSerializer):
- votes = VoteSerializer(many=True)
- class Meta:
- model = PollSubject
- fields = ('id', 'name', 'votes', 'total_votes')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement