Commit 589b9859 authored by okhin's avatar okhin 🚴

Adding a simple search form

parent cc205c77
......@@ -66,3 +66,6 @@ class SearchViolation(SearchForm):
sqs = sqs.filter(country=self.cleaned_data['country'])
return sqs
class QuickSearchViolation(forms.Form):
query = forms.CharField(required='True', max_length=256, label=_("Search"), help_text=_('Search for an existing violation'))
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment