missing return icon

This commit is contained in:
Laura Klünder 2018-12-21 03:13:53 +01:00
parent 475ea434fe
commit 2d8f37963b

View file

@ -207,6 +207,7 @@ class SpecificLocation(Location, models.Model):
for group in self.groups.all():
if group.icon and getattr(group.category, 'allow_' + self.__class__._meta.default_related_name):
return group.icon
return icon
class LocationGroupCategory(SerializableMixin, models.Model):