La saisie des événements a forcément une catégorie

This commit is contained in:
Jean-Marie Favreau 2024-10-16 11:21:31 +02:00
parent 81ae863b45
commit cd68d0039c

View File

@ -43,7 +43,8 @@ class URLSubmissionForm(Form):
category = ModelChoiceField( category = ModelChoiceField(
label=_("Category"), label=_("Category"),
queryset=Category.objects.all().order_by("name"), 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.'), help_text=_('Optional. If you don''t specify a category, we''ll find it for you.'),
required=False, required=False,
) )