diff --git a/src/agenda_culturel/models.py b/src/agenda_culturel/models.py index e3e7625..5ab1da7 100644 --- a/src/agenda_culturel/models.py +++ b/src/agenda_culturel/models.py @@ -338,7 +338,7 @@ class Event(models.Model): verbose_name=_("Category"), help_text=_("Category of the event"), null=True, - default=Category.get_default_category_id(), + default=None, on_delete=models.SET_DEFAULT, ) @@ -1348,7 +1348,7 @@ class RecurrentImport(models.Model): Category, verbose_name=_("Category"), help_text=_("Category of each imported event"), - default=Category.get_default_category_id(), + default=None, on_delete=models.SET_DEFAULT, ) defaultTags = ArrayField(