Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Nathan R Lapierre
advisor
Commits
25b961d6
Commit
25b961d6
authored
Jan 30, 2014
by
Daniel W Bond
Browse files
added search to the forms
parent
1e53098f
Changes
1
Hide whitespace changes
Inline
Side-by-side
advisor/trajectories/forms.py
View file @
25b961d6
...
@@ -4,6 +4,19 @@ from django.core.exceptions import ValidationError
...
@@ -4,6 +4,19 @@ from django.core.exceptions import ValidationError
from
django.forms
import
ModelForm
,
Select
from
django.forms
import
ModelForm
,
Select
from
trajectories.models
import
Trajectory
from
trajectories.models
import
Trajectory
from
haystack.forms
import
SearchForm
class
StyledSeachForm
(
SearchForm
):
q
=
forms
.
CharField
(
required
=
False
,
label
=
'Search'
,
widget
=
forms
.
TextInput
(
attrs
=
{
'class'
:
'form-control'
,
'placeholder'
:
'Search'
,
'autofocus'
:
'autofocus'
,
}),
)
class
NewTrajectoryForm
(
ModelForm
):
class
NewTrajectoryForm
(
ModelForm
):
# def __init__(self, *args, **kwargs):
# def __init__(self, *args, **kwargs):
...
...
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