summaryrefslogtreecommitdiffstats
path: root/forum/views/users.py
diff options
context:
space:
mode:
authorEvgeny Fadeev <evgeny.fadeev@gmail.com>2010-04-23 12:58:35 -0400
committerEvgeny Fadeev <evgeny.fadeev@gmail.com>2010-04-23 12:58:35 -0400
commit1ca11a43c74af6c895ed330d9b115dcc335d6160 (patch)
tree1499f0780050739bcb5275fb5bfb09e5ea9ebb3e /forum/views/users.py
parent3cb6d424e8995a43d0cf5ba1e2d997712ca82d49 (diff)
downloadaskbot-1ca11a43c74af6c895ed330d9b115dcc335d6160.tar.gz
askbot-1ca11a43c74af6c895ed330d9b115dcc335d6160.tar.bz2
askbot-1ca11a43c74af6c895ed330d9b115dcc335d6160.zip
fixed second bug in edit user profile
Diffstat (limited to 'forum/views/users.py')
-rwxr-xr-xforum/views/users.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/forum/views/users.py b/forum/views/users.py
index 7f2fcf84..113c46e6 100755
--- a/forum/views/users.py
+++ b/forum/views/users.py
@@ -18,6 +18,7 @@ import calendar
from django.contrib.contenttypes.models import ContentType
from forum.models import user_updated
from forum.const import USERS_PAGE_SIZE
+from django.conf import settings
question_type = ContentType.objects.get_for_model(Question)
answer_type = ContentType.objects.get_for_model(Answer)
@@ -121,7 +122,9 @@ def edit_user(request, id):
set_new_email(user, new_email)
- #user.username = sanitize_html(form.cleaned_data['username'])
+ if settings.EDITABLE_SCREEN_NAME:
+ user.username = sanitize_html(form.cleaned_data['username'])
+
user.real_name = sanitize_html(form.cleaned_data['realname'])
user.website = sanitize_html(form.cleaned_data['website'])
user.location = sanitize_html(form.cleaned_data['city'])