better location ordering
This commit is contained in:
parent
d2d9a0d690
commit
846faa075c
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue