fix product queryset
This commit is contained in:
parent
a7dca6cd78
commit
04f3823047
|
|
@ -92,7 +92,7 @@ class ProductQuerySet(models.QuerySet):
|
|||
|
||||
def with_base_related(self):
|
||||
return self.select_related('product_type', 'establishment') \
|
||||
.prefetch_related('product_type__subtypes', 'country')
|
||||
.prefetch_related('product_type__subtypes')
|
||||
|
||||
def common(self):
|
||||
return self.filter(category=self.model.COMMON)
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user