Advertisement
robertvari

Post details view

Apr 11th, 2020
240
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.16 KB | None | 0 0
  1. from rest_framework.generics import RetrieveAPIView
  2.  
  3. class PostDetailsView(RetrieveAPIView):
  4.     queryset = Post.objects.all()
  5.     serializer_class = PostSerializer
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement