Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoralaaosh <alaaosh@54714841-351b-0410-a198-e36a94b762f5>2009-12-20 00:48:51 (GMT)
committer Sayamindu Dasgupta <sayamindu@gmail.com>2010-01-08 22:38:30 (GMT)
commit291467c06268c79f4ae7750060f572b6a2ce5f1e (patch)
tree3c7cbd6bee7b2ec19945265881821a231f2e66f0
parenta9f1e107dc5fc797eb58f1e3790f67c845d74219 (diff)
use default redirect when redirect_to is an empty string
git-svn-id: https://translate.svn.sourceforge.net/svnroot/translate/src/branches/Pootle-2.0/Pootle@13522 54714841-351b-0410-a198-e36a94b762f5
-rw-r--r--Pootle-2.0.0/local_apps/pootle_app/views/index/login.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Pootle-2.0.0/local_apps/pootle_app/views/index/login.py b/Pootle-2.0.0/local_apps/pootle_app/views/index/login.py
index cfc32fa..1c4056f 100644
--- a/Pootle-2.0.0/local_apps/pootle_app/views/index/login.py
+++ b/Pootle-2.0.0/local_apps/pootle_app/views/index/login.py
@@ -36,7 +36,7 @@ from pootle_misc.baseurl import redirect
def redirect_after_login(request):
redirect_to = request.REQUEST.get(REDIRECT_FIELD_NAME, None)
- if redirect_to is None or '://' in redirect_to or ' ' in redirect_to:
+ if not redirect_to or '://' in redirect_to or ' ' in redirect_to:
redirect_to = iri_to_uri('/accounts/%s/' % urlquote(request.user.username))
return redirect(redirect_to)