Set Search form text required to False

This commit is contained in:
Aroy-Art 2024-10-22 22:47:32 +02:00
parent fcf9899121
commit c4071587da
Signed by: Aroy
GPG key ID: DB9689E9391DD156

View file

@ -6,7 +6,7 @@ class SearchForm(forms.Form):
q = forms.CharField( q = forms.CharField(
label='Search', label='Search',
max_length=100, max_length=100,
required=True, required=False,
widget=forms.TextInput( widget=forms.TextInput(
attrs={ attrs={
'class': 'form-control', 'class': 'form-control',