draw stuffed areas

This commit is contained in:
Laura Klünder 2017-05-13 21:32:13 +02:00
parent 31160e1141
commit 50a8b19e31

View file

@ -42,6 +42,12 @@ class Area(SpecificLocation, SpaceGeometryMixin, models.Model):
result['stuffed'] = self.stuffed
return result
def get_color(self):
color = super().get_color()
if not color and self.stuffed:
color = 'rgba(0, 0, 0, 0.04)'
return color
class Stair(SpaceGeometryMixin, models.Model):
"""