improve docstrings and add defaults for Space fields

This commit is contained in:
Laura Klünder 2017-05-09 13:20:25 +02:00
parent 2da1bf0bd5
commit cf374d5c61

View file

@ -51,8 +51,8 @@ class Space(SectionGeometryMixin, models.Model):
)
geometry = GeometryField('polygon')
public = models.BooleanField(verbose_name=_('public'), default=True)
category = models.CharField(verbose_name=_('category'), choices=CATEGORIES, max_length=16)
layer = models.CharField(verbose_name=_('layer'), choices=LAYERS, max_length=16)
category = models.CharField(verbose_name=_('category'), choices=CATEGORIES, default='', max_length=16)
layer = models.CharField(verbose_name=_('layer'), choices=LAYERS, default='', max_length=16)
class Meta:
verbose_name = _('Area')
@ -81,7 +81,7 @@ class Door(SectionGeometryMixin, models.Model):
class Hole(SectionGeometryMixin, models.Model):
"""
A hole in the ground of a room, e.g. for stairs.
A hole in the ground of a section (all spaces with layer "normal" and buildings), e.g. for stairs.
"""
geometry = GeometryField('polygon')