improve docstrings and add defaults for Space fields
This commit is contained in:
parent
2da1bf0bd5
commit
cf374d5c61
1 changed files with 3 additions and 3 deletions
|
@ -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')
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue