Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
R
re2o
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Nounous
re2o
Commits
eb9937a3
Commit
eb9937a3
authored
Dec 14, 2016
by
Gabriel Detraz
Committed by
root
Dec 14, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Oubli d'un render_to_response
parent
fc7f1ddb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
search/views.py
search/views.py
+2
-2
No files found.
search/views.py
View file @
eb9937a3
...
...
@@ -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
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