From cd68d0039cf1b94eb1d9faa95f9ed99fefe748c4 Mon Sep 17 00:00:00 2001 From: Jean-Marie Favreau Date: Wed, 16 Oct 2024 11:21:31 +0200 Subject: [PATCH] =?UTF-8?q?La=20saisie=20des=20=C3=A9v=C3=A9nements=20a=20?= =?UTF-8?q?forc=C3=A9ment=20une=20cat=C3=A9gorie?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/agenda_culturel/forms.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/agenda_culturel/forms.py b/src/agenda_culturel/forms.py index 9e33ff2..7c8da7a 100644 --- a/src/agenda_culturel/forms.py +++ b/src/agenda_culturel/forms.py @@ -43,7 +43,8 @@ class URLSubmissionForm(Form): category = ModelChoiceField( label=_("Category"), queryset=Category.objects.all().order_by("name"), - empty_label=_("Unknown"), + initial=Category.get_default_category(), + empty_label=None, help_text=_('Optional. If you don''t specify a category, we''ll find it for you.'), required=False, )