filter locationgroups in arealocation descriptions by can_describe
This commit is contained in:
parent
ec631cd133
commit
d1534a27e8
1 changed files with 1 additions and 1 deletions
|
@ -226,7 +226,7 @@ class AreaLocation(LocationModelMixin, GeometryMapItemWithLevel):
|
||||||
|
|
||||||
def get_subtitle(self):
|
def get_subtitle(self):
|
||||||
items = []
|
items = []
|
||||||
items += [group.title for group in self.groups.all()]
|
items += [group.title for group in self.groups.filter(can_describe=True)]
|
||||||
items += [area.title for area in self.get_in_areas() if area.can_describe]
|
items += [area.title for area in self.get_in_areas() if area.can_describe]
|
||||||
return ', '.join(items)
|
return ', '.join(items)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue