better location ordering

This commit is contained in:
Laura Klünder 2017-12-11 01:51:58 +01:00
parent d2d9a0d690
commit 846faa075c

View file

@ -175,7 +175,7 @@ class SpecificLocation(Location, models.Model):
def order(self):
groups = tuple(self.groups.all())
if not groups:
return (0, 0)
return (0, 0, 0)
return (0, groups[0].category.priority, groups[0].priority)