Last active
February 3, 2021 16:29
-
-
Save svalordev/9a76af5e22a72ff7f3eb4899fec66d62 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
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