Merge remote-tracking branch 'origin/develop' into develop
This commit is contained in:
commit
a2a8b2927f
|
|
@ -43,8 +43,8 @@ class TagCategoryFilterSet(TagsBaseFilterSet):
|
||||||
'product_type', )
|
'product_type', )
|
||||||
|
|
||||||
def by_product_type(self, queryset, name, value):
|
def by_product_type(self, queryset, name, value):
|
||||||
if value == product_models.ProductType.WINE:
|
# if value == product_models.ProductType.WINE:
|
||||||
queryset = queryset.filter(index_name='wine-color').filter(tags__products__isnull=False)
|
# queryset = queryset.filter(index_name='wine-color').filter(tags__products__isnull=False)
|
||||||
queryset = queryset.by_product_type(value)
|
queryset = queryset.by_product_type(value)
|
||||||
return queryset
|
return queryset
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user