Le champ est requis
This commit is contained in:
parent
29726e0389
commit
cdbf65bf2e
@ -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)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user