mirror of
https://gitlab2.federez.net/re2o/re2o
synced 2024-12-26 00:43:46 +00:00
Oubli d'un render_to_response
This commit is contained in:
parent
162524e557
commit
53ce552cd1
1 changed files with 2 additions and 2 deletions
|
@ -2,7 +2,7 @@
|
||||||
# Augustin lemesle, Gabriel Détraz, Goulven Kermarec
|
# Augustin lemesle, Gabriel Détraz, Goulven Kermarec
|
||||||
# Gplv2
|
# Gplv2
|
||||||
from django.shortcuts import render
|
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.context_processors import csrf
|
||||||
from django.template import Context, RequestContext, loader
|
from django.template import Context, RequestContext, loader
|
||||||
from django.contrib.auth.decorators import login_required
|
from django.contrib.auth.decorators import login_required
|
||||||
|
@ -19,7 +19,7 @@ from re2o.settings import SEARCH_RESULT
|
||||||
def form(ctx, template, request):
|
def form(ctx, template, request):
|
||||||
c = ctx
|
c = ctx
|
||||||
c.update(csrf(request))
|
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):
|
def search_result(search, type, request):
|
||||||
date_deb = None
|
date_deb = None
|
||||||
|
|
Loading…
Reference in a new issue