filter locationgroups in arealocation descriptions by can_describe

This commit is contained in:
Laura Klünder 2016-12-24 21:43:50 +01:00
parent ec631cd133
commit d1534a27e8

View file

@ -226,7 +226,7 @@ class AreaLocation(LocationModelMixin, GeometryMapItemWithLevel):
def get_subtitle(self):
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]
return ', '.join(items)