From 5d0cf0d8d9da970f1f0ef689c3084db44e1054f3 Mon Sep 17 00:00:00 2001 From: Gabriel Detraz Date: Wed, 14 Dec 2016 03:52:59 +0100 Subject: [PATCH] Oubli d'un render_to_response --- search/views.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/search/views.py b/search/views.py index 75b899ec..fc281766 100644 --- a/search/views.py +++ b/search/views.py @@ -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