]> git.parisson.com Git - teleforma.git/commitdiff
syntax
authorGuillaume Pellerin <guillaume.pellerin@parisson.com>
Sun, 21 Jun 2026 19:05:21 +0000 (21:05 +0200)
committerGuillaume Pellerin <guillaume.pellerin@parisson.com>
Sun, 21 Jun 2026 19:05:21 +0000 (21:05 +0200)
teleforma/models/core.py

index 863d9eb12d8ae24b59162a99e9888163983c4b14..cb296faaed96aa4f976d27500999b8371b3ea61a 100644 (file)
@@ -1063,8 +1063,19 @@ class Media(MediaBase):
         storage=media_storage,
         )
     poster_file = models.FileField(
-        _('poster file'), upload_to='items/%Y/%m/%d', max_length=255, null=True, blank=False)
-    duration = models.DurationField(_("duration"), blank=True, null=True)
+        _('poster file'),
+        upload_to='items/%Y/%m/%d',
+        max_length=255,
+        null=True,
+        blank=False)
+    duration = models.DurationField(
+        _("duration"),
+        blank=True,
+        null=True)
+    file_datetime = models.DateTimeField(
+        _("file date time"),
+        blank=True,
+        null=True)
 
     def set_mime_type(self):
         path = None