Dot-Notation for Users.url
authorElrond <elrond+mediagoblin.org@samba-tng.org>
Mon, 14 Nov 2011 18:16:02 +0000 (19:16 +0100)
committerElrond <elrond+mediagoblin.org@samba-tng.org>
Mon, 5 Dec 2011 20:08:58 +0000 (21:08 +0100)
mediagoblin/edit/views.py
mediagoblin/templates/mediagoblin/user_pages/user.html

index e766b6d866dc36c1627722f8867986644923fa6c..cbae9cc317a6056c4708993bab4542b4721d14f0 100644 (file)
@@ -176,7 +176,7 @@ def edit_profile(request):
                 {'user': user,
                  'form': form})
 
-        user['url'] = unicode(request.POST['url'])
+        user.url = unicode(request.POST['url'])
         user['bio'] = unicode(request.POST['bio'])
 
         if password_matches:
index d0f3bced8fd8f1b25147ac25df18248240776047..b952e88cc18cc8d97fefbdc73fd0d4c6b122566e 100644 (file)
@@ -89,7 +89,7 @@
       {%- trans username=user.username %}{{ username }}'s profile{% endtrans -%}
     </h1>
 
-    {% if not user['url'] and not user['bio'] %}
+    {% if not user.url and not user.bio %}
       {% if request.user._id == user._id %}
         <div class="grid_6 alpha empty_space">
           <p>