]> git.parisson.com Git - teleforma.git/commitdiff
Media.is_published=false by default
authorGuillaume Pellerin <guillaume.pellerin@ircam.fr>
Mon, 18 Jul 2022 08:20:09 +0000 (10:20 +0200)
committerGuillaume Pellerin <guillaume.pellerin@ircam.fr>
Mon, 18 Jul 2022 08:20:09 +0000 (10:20 +0200)
teleforma/models/core.py

index 5a91db0ce0317ead4d3b2ada6c53602fbd756a6e..2cc0c99364887350afe214727a5a3d716996c470 100755 (executable)
@@ -434,7 +434,7 @@ class MediaBase(ClonableMixin, Model):
     date_added      = DateTimeField(_('date added'), auto_now_add=True)
     date_modified   = DateTimeField(_('date modified'), auto_now=True)
     code            = CharField(_('code'), max_length=255, blank=True)
-    is_published    = BooleanField(_('published'))
+    is_published    = BooleanField(_('published')_default=False)
     mime_type       = CharField(_('mime type'), max_length=255, blank=True)
     weight          = models.IntegerField(_('weight'), choices=WEIGHT_CHOICES, default=1, null=True, blank=True)
     notes = GenericRelation(Note)