From: Guillaume Pellerin Date: Mon, 18 Jul 2022 08:20:09 +0000 (+0200) Subject: Media.is_published=false by default X-Git-Tag: 2.8.1-pro~104^2 X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=a2444264bbf302835ac72acd80a10a3171377e65;p=teleforma.git Media.is_published=false by default --- diff --git a/teleforma/models/core.py b/teleforma/models/core.py index 5a91db0c..2cc0c993 100755 --- a/teleforma/models/core.py +++ b/teleforma/models/core.py @@ -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)