Merge branch 'bug-establishment_tag_filtration' into 'develop'
bug-establishment_tag_filtration See merge request gm/gm-backend!264
This commit is contained in:
commit
2ffe4bc3ea
|
|
@ -678,7 +678,7 @@ class Establishment(GalleryMixin, ProjectBaseMixin, URLImageMixin,
|
||||||
@property
|
@property
|
||||||
def visible_tags_detail(self):
|
def visible_tags_detail(self):
|
||||||
"""Removes some tags from detail Establishment representation"""
|
"""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):
|
def recalculate_public_mark(self):
|
||||||
fresh_review = self.reviews.published().order_by('-modified').first()
|
fresh_review = self.reviews.published().order_by('-modified').first()
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user