Skip to content

Commit

Permalink
Updating the context so it has csrf_token
Browse files Browse the repository at this point in the history
  • Loading branch information
Felipe Álvarez committed Jun 5, 2017
1 parent cf34a04 commit 673dffc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions popular_proposal/views/wizard.py
Expand Up @@ -11,7 +11,7 @@

from django.http import HttpResponseNotFound

from django.shortcuts import get_object_or_404
from django.shortcuts import get_object_or_404, render

from django.shortcuts import render_to_response

Expand All @@ -32,6 +32,7 @@

from votainteligente.send_mails import send_mails_to_staff

from django.template import RequestContext

wizard_form_list = get_form_list()

Expand Down Expand Up @@ -88,8 +89,7 @@ def done(self, form_list, **kwargs):
temporary_data.notify_new()
send_mails_to_staff({'temporary_data': temporary_data},
'notify_staff_new_proposal')
return render_to_response('popular_proposal/wizard/done.html',
context)
return render(self.request, 'popular_proposal/wizard/done.html', context)

def get_context_data(self, form, **kwargs):
context = super(ProposalWizardBase, self).get_context_data(form,
Expand Down

0 comments on commit 673dffc

Please sign in to comment.