Dot-Notation for Users.bio and .bio_html
authorElrond <elrond+mediagoblin.org@samba-tng.org>
Mon, 14 Nov 2011 18:19:54 +0000 (19:19 +0100)
committerElrond <elrond+mediagoblin.org@samba-tng.org>
Mon, 5 Dec 2011 20:08:58 +0000 (21:08 +0100)
mediagoblin/edit/views.py

index cbae9cc317a6056c4708993bab4542b4721d14f0..4e8c3686843c69896d3f179252d5478be49200b5 100644 (file)
@@ -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()