Last active
February 3, 2021 08:42
-
-
Save svalordev/e84a4af2212cf6821f1fd22aa7a1d575 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 viewsets | |
from .serializer import BookModelSerializer | |
from main.models import Book | |
class BookViewSet(viewsets.ModelViewSet): | |
queryset = Book.objects.all() | |
serializer_class = BookModelSerializer |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment