fix product in_fav

This commit is contained in:
alex 2019-11-15 10:53:28 +03:00
parent 0dbb2c64cd
commit 4d302395a9

View File

@ -16,6 +16,7 @@ class ProductBaseView(generics.GenericAPIView):
"""Override get_queryset method."""
return Product.objects.published() \
.with_base_related() \
.annotate_in_favorites(self.request.user) \
.by_country_code(self.request.country_code) \
.order_by('-created')