add single, allow_* and priority to LocationGroupCategory

This commit is contained in:
Laura Klünder 2017-07-10 18:55:35 +02:00
parent 18b64675b6
commit 2d3d67403c
2 changed files with 57 additions and 0 deletions

View file

@ -153,6 +153,12 @@ class SpecificLocation(Location, models.Model):
class LocationGroupCategory(TitledMixin, models.Model):
name = models.SlugField(_('Name'), unique=True, max_length=50)
single = models.BooleanField(_('single selection'), default=False)
allow_levels = models.BooleanField(_('allow levels'), db_index=True, default=True)
allow_spaces = models.BooleanField(_('allow spaces'), db_index=True, default=True)
allow_areas = models.BooleanField(_('allow areas'), db_index=True, default=True)
allow_pois = models.BooleanField(_('allow pois'), db_index=True, default=True)
priority = models.IntegerField(default=0, db_index=True)
class Meta:
verbose_name = _('Location Group Category')