Add sort order field to search form

This commit is contained in:
Aroy-Art 2024-12-30 22:51:47 +01:00
parent 8a0d859a4a
commit a0352e2b7c
Signed by: Aroy
GPG key ID: 583642324A1D2070

View file

@ -40,6 +40,18 @@ class SearchForm(forms.Form):
) )
) )
sort_order = forms.ChoiceField(
label="Sort order",
choices=[('1', 'Descending'), ('2', 'Ascending')],
initial='1',
required=False,
widget=forms.Select(
attrs={
'class': 'form-select',
}
)
)
mature = forms.ChoiceField( mature = forms.ChoiceField(
label="Filter by Mature", label="Filter by Mature",
choices=[('1', 'All'),('2', 'General'), ('3', 'Mature/Adult')], choices=[('1', 'All'),('2', 'General'), ('3', 'Mature/Adult')],