From 0c5dea8e1814ef95452040a3adc790cd6f25ea04 Mon Sep 17 00:00:00 2001 From: Jean-Marie Favreau Date: Tue, 2 Jan 2024 18:36:50 +0100 Subject: [PATCH] =?UTF-8?q?Les=20=C3=A9v=C3=A9nements=20sont=20par=20d?= =?UTF-8?q?=C3=A9faut=20non=20publi=C3=A9s=20(en=20brouillon)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/agenda_culturel/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/agenda_culturel/models.py b/src/agenda_culturel/models.py index c71343e..02b497a 100644 --- a/src/agenda_culturel/models.py +++ b/src/agenda_culturel/models.py @@ -141,7 +141,7 @@ class Event(models.Model): title = models.CharField(verbose_name=_('Title'), help_text=_('Short title'), max_length=512) - status = models.CharField(_("Status"), max_length=20, choices=STATUS.choices, default=STATUS.PUBLISHED) + status = models.CharField(_("Status"), max_length=20, choices=STATUS.choices, default=STATUS.DRAFT) category = models.ForeignKey(Category, verbose_name=_('Category'), help_text=_('Category of the event'), null=True, default=Category.get_default_category_id(), on_delete=models.SET_DEFAULT)