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
Nounous
re2o
Commits
4cd32edf
Commit
4cd32edf
authored
Dec 14, 2016
by
root
Browse files
Merge branch 'master' of
https://gitlab.rezometz.org/rezo/re2o
parents
e8e93ed4
eb9937a3
Changes
1
Hide whitespace changes
Inline
Side-by-side
search/views.py
View file @
4cd32edf
...
...
@@ -2,7 +2,7 @@
# Augustin lemesle, Gabriel Détraz, Goulven Kermarec
# Gplv2
from
django.shortcuts
import
render
from
django.shortcuts
import
render_to_response
,
get_object_or_404
from
django.shortcuts
import
get_object_or_404
from
django.template.context_processors
import
csrf
from
django.template
import
Context
,
RequestContext
,
loader
from
django.contrib.auth.decorators
import
login_required
...
...
@@ -19,7 +19,7 @@ from re2o.settings import SEARCH_RESULT
def
form
(
ctx
,
template
,
request
):
c
=
ctx
c
.
update
(
csrf
(
request
))
return
render
_to_response
(
template
,
c
,
context_instance
=
RequestContext
(
request
)
)
return
render
(
request
,
template
,
c
)
def
search_result
(
search
,
type
,
request
):
date_deb
=
None
...
...
Write
Preview
Supports
Markdown
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