fix groups not respected in subtitle
This commit is contained in:
parent
b8b21b775e
commit
e4be49ffd4
1 changed files with 1 additions and 1 deletions
|
@ -168,7 +168,7 @@ class SpecificLocation(Location, models.Model):
|
|||
|
||||
@property
|
||||
def subtitle(self):
|
||||
groups = tuple(self.groups.all() if 'group' in getattr(self, '_prefetched_objects_cache', ()) else ())
|
||||
groups = tuple(self.groups.all() if 'groups' in getattr(self, '_prefetched_objects_cache', ()) else ())
|
||||
return groups[0].title if groups else self.__class__._meta.verbose_name
|
||||
|
||||
@cached_property
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue