door heights

This commit is contained in:
Laura Klünder 2017-11-14 21:33:55 +01:00
parent f2b0fc26b1
commit 3315fbf057
3 changed files with 27 additions and 3 deletions

View file

@ -21,6 +21,7 @@ class Level(SpecificLocation, models.Model):
"""
base_altitude = models.DecimalField(_('base altitude'), null=False, unique=True, max_digits=6, decimal_places=2)
default_height = models.DecimalField(_('default space height'), max_digits=6, decimal_places=2, default=3.0)
door_height = models.DecimalField(_('door height'), max_digits=6, decimal_places=2, default=2.0)
on_top_of = models.ForeignKey('mapdata.Level', null=True, on_delete=models.CASCADE,
related_name='levels_on_top', verbose_name=_('on top of'))
short_label = models.SlugField(max_length=20, verbose_name=_('short label'), unique=True)