Fixed number is NULL constraint.

This commit is contained in:
2018-01-24 18:34:29 +01:00
parent d8d9fcef12
commit d3898430cf
2 changed files with 23 additions and 1 deletions

View File

@@ -43,7 +43,9 @@ class Event(models.Model):
related_name='+')
number = models.CharField(unique=True,
max_length=config.NUMBER_MAX_LENGTH,
blank=True)
blank=True,
null=True,
default=None)
# DescriptionForm
title = models.CharField(max_length=config.TITLE_MAX_LENGTH)