From: Guillaume Pellerin Date: Mon, 6 Jul 2020 11:11:27 +0000 (+0200) Subject: exam: allow null Script.mime_type X-Git-Tag: 1.4.3~61^2~2 X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=dc7c8a4cebf274741b512a27e8e269553f1559fd;p=teleforma.git exam: allow null Script.mime_type --- diff --git a/teleforma/exam/models.py b/teleforma/exam/models.py index f2c38e99..d9d8a7b0 100755 --- a/teleforma/exam/models.py +++ b/teleforma/exam/models.py @@ -207,7 +207,7 @@ class BaseResource(models.Model): date_added = models.DateTimeField(_('date added'), auto_now_add=True) date_modified = models.DateTimeField(_('date modified'), auto_now=True, null=True) uuid = models.CharField(_('UUID'), blank=True, max_length=512) - mime_type = models.CharField(_('MIME type'), max_length=128, blank=True) + mime_type = models.CharField(_('MIME type'), max_length=128, blank=True, null=True) sha1 = models.CharField(_('sha1'), blank=True, max_length=512) class Meta(MetaCore):