Commit 88c43c09 authored by Christophe Siraut's avatar Christophe Siraut

Fix for profile page.

parent d2e69403
......@@ -11,7 +11,7 @@ def _(string):
def email_notify(poll, voter):
subject = _("Nuages email notification")
message = _("User %s has voted") % voter
message = _("User %s has voted.") % voter
message += "\n\n"
message += _("The link to your poll: %s") % poll.link
message += "\n\n"
......@@ -30,6 +30,6 @@ def profile(request):
setattr(request.user.userprofile, k, v)
request.user.userprofile.save()
return HttpResponseRedirect(reverse('home'))
form = UserProfileForm()
form = UserProfileForm(instance=request.user.userprofile)
return render(request, "form.html", {'form': form})
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