aboutsummaryrefslogtreecommitdiffstats
path: root/mediagoblin/user_pages
diff options
context:
space:
mode:
authorElrond <elrond+mediagoblin.org@samba-tng.org>2011-11-14 19:01:26 +0100
committerElrond <elrond+mediagoblin.org@samba-tng.org>2011-12-05 21:08:57 +0100
commit7a3d00ec217cc3fd44788b9d8c63ab9f7b1d05a7 (patch)
treef79d338eef9f3713d1b5c4f6e1a1a2e0f5c4cb73 /mediagoblin/user_pages
parent4facc7a0a21a57023f0d3707f1a3483ca7a560c8 (diff)
downloadmediagoblin-7a3d00ec217cc3fd44788b9d8c63ab9f7b1d05a7.tar.lz
mediagoblin-7a3d00ec217cc3fd44788b9d8c63ab9f7b1d05a7.tar.xz
mediagoblin-7a3d00ec217cc3fd44788b9d8c63ab9f7b1d05a7.zip
Dot-Notation for Users.status
Diffstat (limited to 'mediagoblin/user_pages')
-rw-r--r--mediagoblin/user_pages/views.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/mediagoblin/user_pages/views.py b/mediagoblin/user_pages/views.py
index ad33479b..4b311822 100644
--- a/mediagoblin/user_pages/views.py
+++ b/mediagoblin/user_pages/views.py
@@ -40,7 +40,7 @@ def user_home(request, page):
'username': request.matchdict['user']})
if not user:
return render_404(request)
- elif user['status'] != u'active':
+ elif user.status != u'active':
return render_to_response(
request,
'mediagoblin/user_pages/user.html',
@@ -254,7 +254,7 @@ def processing_panel(request):
# Make sure the user exists and is active
if not user:
return render_404(request)
- elif user['status'] != u'active':
+ elif user.status != u'active':
return render_to_response(
request,
'mediagoblin/user_pages/user.html',