add LocationGroup.subtitle
This commit is contained in:
parent
0aadd97eb8
commit
be97ed6a47
1 changed files with 4 additions and 0 deletions
|
@ -273,6 +273,10 @@ class LocationGroup(Location, models.Model):
|
|||
for obj in query:
|
||||
obj.register_change(force=True)
|
||||
|
||||
@property
|
||||
def subtitle(self):
|
||||
return self.category.title
|
||||
|
||||
@cached_property
|
||||
def order(self):
|
||||
return (self.category.priority, self.priority)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue