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

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") %
message += "\n\n"
......@@ -30,6 +30,6 @@ def profile(request):
setattr(request.user.userprofile, k, v)
return HttpResponseRedirect(reverse('home'))
form = UserProfileForm()
form = UserProfileForm(instance=request.user.userprofile)
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