]> git.parisson.com Git - teleforma.git/commitdiff
exam: allow null Script.mime_type
authorGuillaume Pellerin <guillaume.pellerin@ircam.fr>
Mon, 6 Jul 2020 11:11:27 +0000 (13:11 +0200)
committerGuillaume Pellerin <guillaume.pellerin@ircam.fr>
Mon, 6 Jul 2020 11:11:27 +0000 (13:11 +0200)
teleforma/exam/models.py

index f2c38e99b6819a47b01d9568fdbc55e42dd9b665..d9d8a7b043a57eb909c1b0ea4493d4d9dc314012 100755 (executable)
@@ -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):