aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorElrond <elrond+mediagoblin.org@samba-tng.org>2011-11-14 19:19:54 +0100
committerElrond <elrond+mediagoblin.org@samba-tng.org>2011-12-05 21:08:58 +0100
commit4b77f86ab46c54a41a250ad1d8cec82214b67545 (patch)
treebdd4d11933452fe0c6c109aff6abcbb594b273b4
parenta24e5133ed9ee0845e854478da9a88f85e755f70 (diff)
downloadmediagoblin-4b77f86ab46c54a41a250ad1d8cec82214b67545.tar.lz
mediagoblin-4b77f86ab46c54a41a250ad1d8cec82214b67545.tar.xz
mediagoblin-4b77f86ab46c54a41a250ad1d8cec82214b67545.zip
Dot-Notation for Users.bio and .bio_html
-rw-r--r--mediagoblin/edit/views.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/mediagoblin/edit/views.py b/mediagoblin/edit/views.py
index cbae9cc3..4e8c3686 100644
--- a/mediagoblin/edit/views.py
+++ b/mediagoblin/edit/views.py
@@ -177,13 +177,13 @@ def edit_profile(request):
'form': form})
user.url = unicode(request.POST['url'])
- user['bio'] = unicode(request.POST['bio'])
+ user.bio = unicode(request.POST['bio'])
if password_matches:
user['pw_hash'] = auth_lib.bcrypt_gen_password_hash(
request.POST['new_password'])
- user['bio_html'] = cleaned_markdown_conversion(user['bio'])
+ user.bio_html = cleaned_markdown_conversion(user['bio'])
user.save()