fix product in_fav
This commit is contained in:
parent
0dbb2c64cd
commit
4d302395a9
|
|
@ -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')
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user