Created
July 8, 2019 07:28
-
-
Save akshar-raaj/bfbcc7168dac14ac8d53392a8d196ba2 to your computer and use it in GitHub Desktop.
Serializer
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class QuestionSerializer(serializers.ModelSerializer): | |
| class Meta: | |
| model = Question | |
| fields = ('pub_date', 'question_text', 'choice_set') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment