diff options
author | Elrond <elrond+mediagoblin.org@samba-tng.org> | 2011-11-14 19:19:54 +0100 |
---|---|---|
committer | Elrond <elrond+mediagoblin.org@samba-tng.org> | 2011-12-05 21:08:58 +0100 |
commit | 4b77f86ab46c54a41a250ad1d8cec82214b67545 (patch) | |
tree | bdd4d11933452fe0c6c109aff6abcbb594b273b4 | |
parent | a24e5133ed9ee0845e854478da9a88f85e755f70 (diff) | |
download | mediagoblin-4b77f86ab46c54a41a250ad1d8cec82214b67545.tar.lz mediagoblin-4b77f86ab46c54a41a250ad1d8cec82214b67545.tar.xz mediagoblin-4b77f86ab46c54a41a250ad1d8cec82214b67545.zip |
Dot-Notation for Users.bio and .bio_html
-rw-r--r-- | mediagoblin/edit/views.py | 4 |
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() |