remove collection and guide tags from metadata

This commit is contained in:
Kirill 2020-02-07 14:24:34 +03:00
parent 7646f7d809
commit f9187c5801

View File

@ -55,7 +55,7 @@ class TagCategoryFilterSet(TagsBaseFilterSet):
if value == EstablishmentType.ARTISAN: if value == EstablishmentType.ARTISAN:
qs = models.TagCategory.objects.with_base_related().filter(index_name='shop_category') qs = models.TagCategory.objects.with_base_related().filter(index_name='shop_category')
else: else:
qs = queryset.by_establishment_type(value) qs = queryset.by_establishment_type(value).exclude(index_name__in=['guide', 'collection'])
return qs return qs