From 846faa075c796d3e006c2fb3a4ce9c20161a75cd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Laura=20Kl=C3=BCnder?= Date: Mon, 11 Dec 2017 01:51:58 +0100 Subject: [PATCH] better location ordering --- src/c3nav/mapdata/models/locations.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/c3nav/mapdata/models/locations.py b/src/c3nav/mapdata/models/locations.py index ed0553fa..5f45e2f4 100644 --- a/src/c3nav/mapdata/models/locations.py +++ b/src/c3nav/mapdata/models/locations.py @@ -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)