Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class ProductListApiView(generics.ListAPIView):
- serializer_class = ProductSerializer
- def get_queryset(self):
- return Product.objects.filter(category__pk=4)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement