make slug and titles non-mandatory

This commit is contained in:
Laura Klünder 2017-07-08 16:50:37 +02:00
parent f2913dd8ac
commit 3dfa4b4956
3 changed files with 3 additions and 7 deletions

View file

@ -28,7 +28,7 @@ class LocationSlug(SerializableMixin, models.Model):
'LocationGroup': 'g'
}
LOCATION_TYPE_BY_CODE = {code: model_name for model_name, code in LOCATION_TYPE_CODES.items()}
slug = models.SlugField(_('Slug'), unique=True, null=True, max_length=50)
slug = models.SlugField(_('Slug'), unique=True, null=True, blank=True, max_length=50)
objects = LocationSlugManager()