diff options
author | Christopher Allan Webber <cwebber@dustycloud.org> | 2011-04-23 12:54:11 -0500 |
---|---|---|
committer | Christopher Allan Webber <cwebber@dustycloud.org> | 2011-04-23 12:54:11 -0500 |
commit | 574d1511d6a111efd4c6da78ef03593e4bcb2056 (patch) | |
tree | 05570cc9f78569abde30c331f4a3ff1b4da4cc65 | |
parent | e745ce10c9bdec967f349478db7163b8f137926a (diff) | |
download | mediagoblin-574d1511d6a111efd4c6da78ef03593e4bcb2056.tar.lz mediagoblin-574d1511d6a111efd4c6da78ef03593e4bcb2056.tar.xz mediagoblin-574d1511d6a111efd4c6da78ef03593e4bcb2056.zip |
Probably better to request.POST.get?
-rw-r--r-- | mediagoblin/auth/views.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mediagoblin/auth/views.py b/mediagoblin/auth/views.py index aadde32f..15e33e17 100644 --- a/mediagoblin/auth/views.py +++ b/mediagoblin/auth/views.py @@ -87,7 +87,7 @@ def login(request): request.session['user_id'] = unicode(user['_id']) request.session.save() - if request.POST.has_key('next'): + if request.POST.get('next'): return exc.HTTPFound(location=request.POST['next']) else: return exc.HTTPFound( |