aboutsummaryrefslogtreecommitdiffstats
path: root/servo/views/account.py
diff options
context:
space:
mode:
authorFilipp Lepalaan <filipp@mac.com>2015-09-25 20:03:56 +0300
committerFilipp Lepalaan <filipp@mac.com>2015-09-25 20:03:56 +0300
commita8614edb85a3bfaa6732cdf676f94c0a36cdeb08 (patch)
treefc83e086646eb81d66324d09ad2b92ca12a5f444 /servo/views/account.py
parent304d222168e3a70c216d669e20e158110f2a22ef (diff)
downloadServo-a8614edb85a3bfaa6732cdf676f94c0a36cdeb08.tar.gz
Servo-a8614edb85a3bfaa6732cdf676f94c0a36cdeb08.tar.bz2
Servo-a8614edb85a3bfaa6732cdf676f94c0a36cdeb08.zip
Cleanup
Diffstat (limited to 'servo/views/account.py')
-rw-r--r--servo/views/account.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/servo/views/account.py b/servo/views/account.py
index f826063..a85892b 100644
--- a/servo/views/account.py
+++ b/servo/views/account.py
@@ -108,7 +108,7 @@ def login(request):
else:
auth.login(request, user)
- if user.location:
+ if user.location is not None:
lang = user.activate_locale()
request.session['django_language'] = lang
request.session['django_timezone'] = user.timezone