swap space color logic
@@ -78,13 +78,13 @@ class Space(SpecificLocation, LevelSectionGeometryMixin, models.Model):
return result
def get_color(self):
+ color = super().get_color()
+ if not color:
color = {
'stairs': '#dddddd',
'escalator': '#bbbbbb',
'elevator': '#00ffff',
}.get(self.category)
- if not color:
- color = super().get_color()
return color
