Commit 9d531fea authored by Christophe Siraut's avatar Christophe Siraut

Move clear_cookie. Cleanups.

parent 72b18abe
......@@ -33,9 +33,6 @@ def profile(request):
request.user.userprofile.save()
return HttpResponseRedirect(reverse('home'))
form = UserProfileForm(instance=request.user.userprofile)
return render(request, "form.html", {'form': form})
return render(request, "form.html", {'form': form})
def clear_cookie(request, poll_id):
request.session.clear()
return HttpResponseRedirect(reverse('vote', args=(poll_id,)))
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment