Les événements sont par défaut non publiés (en brouillon)

This commit is contained in:
Jean-Marie Favreau 2024-01-02 18:36:50 +01:00
parent 25f9b8c8e6
commit 0c5dea8e18

View File

@ -141,7 +141,7 @@ class Event(models.Model):
title = models.CharField(verbose_name=_('Title'), help_text=_('Short title'), max_length=512) 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) 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)