Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
memopol
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
32
Issues
32
List
Boards
Labels
Service Desk
Milestones
Merge Requests
6
Merge Requests
6
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Political Memory
memopol
Commits
ab0bede4
Commit
ab0bede4
authored
Jul 27, 2017
by
Gilles Quenot
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
handle haystack SearchForm
parent
76d18d9b
Pipeline
#1188
failed with stage
in 10 minutes and 31 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
+7
-2
src/memopol/forms.py
src/memopol/forms.py
+7
-2
No files found.
src/memopol/forms.py
View file @
ab0bede4
from
django
import
forms
#from django import forms
from
haystack
import
SearchForm
from
dal
import
autocomplete
,
forward
from
representatives.models
import
Chamber
,
Group
class
RepresentativeSearchForm
(
forms
.
Form
):
class
RepresentativeSearchForm
(
Search
Form
):
search
=
forms
.
CharField
(
required
=
False
,
label
=
'Name'
,
...
...
@@ -65,6 +66,10 @@ class RepresentativeSearchForm(forms.Form):
)
)
#from haystack doc remplir cette f() TODO
def
search
():
#triggered by submiting forms, and return (S)QS corespondant recherche
class
DossierSearchForm
(
forms
.
Form
):
search
=
forms
.
CharField
(
...
...
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