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

Fix for profile page.

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