locationgroups always on top

This commit is contained in:
Laura Klünder 2017-10-28 20:06:44 +02:00
parent be97ed6a47
commit 966b554169

View file

@ -279,7 +279,7 @@ class LocationGroup(Location, models.Model):
@cached_property
def order(self):
return (self.category.priority, self.priority)
return (1, self.category.priority, self.priority)
def save(self, *args, **kwargs):
if (self.orig_color != self.color or