Skip to content

Commit

Permalink
confirmation: Change render_to_response to render.
Browse files Browse the repository at this point in the history
Related to zulip#4093
  • Loading branch information
umairwaheed authored and timabbott committed Mar 17, 2017
1 parent 6511f92 commit da012ee
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions confirmation/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
__revision__ = '$Id: views.py 21 2008-12-05 09:21:03Z jarek.zgoda $'


from django.shortcuts import render_to_response
from django.shortcuts import render
from django.template import RequestContext
from django.conf import settings
from django.http import HttpRequest, HttpResponse
Expand Down Expand Up @@ -43,4 +43,4 @@ def confirm(request, confirmation_key):
if obj and isinstance(obj, (PreregistrationUser, Confirmation)):
# if we have an object, we can use specific template
templates.insert(0, 'confirmation/confirm_%s.html' % (obj._meta.model_name,))
return render_to_response(templates, ctx, request=request)
return render(request, templates, context=ctx)

0 comments on commit da012ee

Please sign in to comment.