only use locations for describing with can_describe=True

This commit is contained in:
Laura Klünder 2016-12-22 03:31:27 +01:00
parent c9dafa7942
commit 1f4c22e113

View file

@ -165,7 +165,7 @@ class AreaLocation(LocationModelMixin, GeometryMapItemWithLevel):
items = []
if with_type:
items += [self.get_location_type_display()]
items += [area.title for area in self.get_in_areas()]
items += [area.title for area in self.get_in_areas() if area.can_describe]
return ', '.join(items)
@classmethod