add LocationGroup.subtitle

This commit is contained in:
Laura Klünder 2017-10-28 19:49:28 +02:00
parent 0aadd97eb8
commit be97ed6a47

View file

@ -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)