Created
May 7, 2019 05:57
-
-
Save akshar-raaj/72a1e524756f5bbba811a3dbad4902ec to your computer and use it in GitHub Desktop.
QuestionSerializer
This file contains 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
from rest_framework import serializers | |
from polls.models import Question | |
class QuestionSerializer(serializers.ModelSerializer): | |
class Meta | |
model = Question | |
exclude = () |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment