Merge branch 'bug-establishment_tag_filtration' into 'develop'

bug-establishment_tag_filtration

See merge request gm/gm-backend!264
This commit is contained in:
Олег Хаятов 2020-02-06 09:07:34 +00:00
commit 2ffe4bc3ea

View File

@ -678,7 +678,7 @@ class Establishment(GalleryMixin, ProjectBaseMixin, URLImageMixin,
@property
def visible_tags_detail(self):
"""Removes some tags from detail Establishment representation"""
return self.visible_tags.exclude(category__index_name__in=['tag'])
return self.visible_tags.exclude(category__index_name__in=['tag', 'shop_category'])
def recalculate_public_mark(self):
fresh_review = self.reviews.published().order_by('-modified').first()