remove shop category tags from serialization
This commit is contained in:
parent
d234214467
commit
89f2c3bf1d
|
|
@ -679,7 +679,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