Le champ est requis

This commit is contained in:
Jean-Marie Favreau 2025-01-08 18:44:00 +01:00
parent 29726e0389
commit cdbf65bf2e

View File

@ -399,14 +399,12 @@ class SimpleSearchEventFilter(django_filters.FilterSet):
widget=forms.CheckboxSelectMultiple, widget=forms.CheckboxSelectMultiple,
) )
#past = django_filters.BooleanFilter(
# label=_("In the past"),
# method="in_past")
past = django_filters.ChoiceFilter( past = django_filters.ChoiceFilter(
label=_("In the past"), label=_("In the past"),
choices=[(False, _("No")), (True, _("Yes"))], choices=[(False, _("No")), (True, _("Yes"))],
null_label=None, null_label=None,
empty_label=None, empty_label=None,
required=True,
method="in_past", method="in_past",
widget=forms.Select) widget=forms.Select)