Skip to content

Instantly share code, notes, and snippets.

@shaurya-blip
Last active February 3, 2021 16:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save shaurya-blip/9a76af5e22a72ff7f3eb4899fec66d62 to your computer and use it in GitHub Desktop.
Save shaurya-blip/9a76af5e22a72ff7f3eb4899fec66d62 to your computer and use it in GitHub Desktop.
from rest_framework import serializers
from main.models import Book
class BookModelSerializer(serializers.ModelSerializer):
class Meta:
model = Book
fields = '__all__'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment