From 574d1511d6a111efd4c6da78ef03593e4bcb2056 Mon Sep 17 00:00:00 2001 From: Christopher Allan Webber Date: Sat, 23 Apr 2011 12:54:11 -0500 Subject: [PATCH] Probably better to request.POST.get? --- mediagoblin/auth/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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( -- 2.25.1