fix subtitle logic
This commit is contained in:
parent
8472fc1952
commit
879f550f84
1 changed files with 1 additions and 2 deletions
|
@ -158,8 +158,7 @@ class SpecificLocation(Location, models.Model):
|
|||
@property
|
||||
def subtitle(self):
|
||||
groups = tuple(self.groups.all())
|
||||
if groups:
|
||||
return groups[0].title if groups else str(self.__class__._meta.verbose_name)
|
||||
return groups[0].title if groups else str(self.__class__._meta.verbose_name)
|
||||
|
||||
|
||||
class LocationGroupCategory(TitledMixin, models.Model):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue