Text fields shouldn't have null=True. (#94)

This commit is contained in:
2018-09-22 19:09:01 +01:00
parent 3a17029dbd
commit ff445e166d
5 changed files with 388 additions and 97 deletions

View File

@ -28,15 +28,11 @@ class ImageFile(BaseFile):
caption = models.CharField(
verbose_name=_("Image caption"),
max_length=240,
default=None,
null=True,
blank=True,
)
credit = models.CharField(
verbose_name=_("Image credit"),
max_length=240,
default=None,
null=True,
blank=True,
)