Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
piks3l
Respect My Net
Commits
589b9859
Commit
589b9859
authored
Feb 17, 2016
by
Okhin
Browse files
Adding a simple search form
parent
cc205c77
Changes
1
Show whitespace changes
Inline
Side-by-side
bt/forms.py
View file @
589b9859
...
...
@@ -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'
))
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment