Skip to content

Commit

Permalink
Fixes pixel/symposion pinax#162 by changing from render_to_response t…
Browse files Browse the repository at this point in the history
…o render
  • Loading branch information
chrisjrn committed Aug 11, 2017
1 parent bad6212 commit 1519afa
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions symposion/sponsorship/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
from django.contrib import messages
from django.contrib.admin.views.decorators import staff_member_required
from django.http import Http404, HttpResponse
from django.shortcuts import render_to_response, redirect, get_object_or_404
from django.shortcuts import render, redirect, get_object_or_404
from django.template import RequestContext
from django.utils.translation import ugettext_lazy as _

Expand Down Expand Up @@ -48,9 +48,9 @@ def sponsor_apply(request):
else:
form = SponsorApplicationForm(user=request.user)

return render_to_response("symposion/sponsorship/apply.html", {
return render(request, "symposion/sponsorship/apply.html", {
"form": form,
}, context_instance=RequestContext(request))
})


@login_required
Expand All @@ -68,9 +68,9 @@ def sponsor_add(request):
else:
form = SponsorApplicationForm(user=request.user)

return render_to_response("symposion/sponsorship/add.html", {
return render(request, "symposion/sponsorship/add.html", {
"form": form,
}, context_instance=RequestContext(request))
})


@login_required
Expand Down Expand Up @@ -101,11 +101,11 @@ def sponsor_detail(request, pk):
form = SponsorDetailsForm(instance=sponsor)
formset = SponsorBenefitsFormSet(**formset_kwargs)

return render_to_response("symposion/sponsorship/detail.html", {
return render(request, "symposion/sponsorship/detail.html", {
"sponsor": sponsor,
"form": form,
"formset": formset,
}, context_instance=RequestContext(request))
})


@staff_member_required
Expand Down

0 comments on commit 1519afa

Please # to comment.