From a2444264bbf302835ac72acd80a10a3171377e65 Mon Sep 17 00:00:00 2001 From: Guillaume Pellerin Date: Mon, 18 Jul 2022 10:20:09 +0200 Subject: [PATCH] Media.is_published=false by default --- teleforma/models/core.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- 2.39.5