Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
etch
nuages
Commits
88c43c09
Commit
88c43c09
authored
May 11, 2013
by
Christophe Siraut
Browse files
Fix for profile page.
parent
d2e69403
Changes
1
Hide whitespace changes
Inline
Side-by-side
accounts/views.py
View file @
88c43c09
...
...
@@ -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
})
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment