Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from rest_framework.generics import RetrieveAPIView
- class PostDetailsView(RetrieveAPIView):
- queryset = Post.objects.all()
- serializer_class = PostSerializer
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement