Created
November 20, 2018 01:59
-
-
Save esirK/ffee867387cfe83c98365ccb221f05e9 to your computer and use it in GitHub Desktop.
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 ArticleSerializer(serializers.ModelSerializer): | |
| class Meta: | |
| model = Article | |
| fields = ('id', 'title', 'description', 'body', 'author_id') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment