diff options
author | Filipp Lepalaan <filipp@mac.com> | 2015-09-25 20:03:56 +0300 |
---|---|---|
committer | Filipp Lepalaan <filipp@mac.com> | 2015-09-25 20:03:56 +0300 |
commit | a8614edb85a3bfaa6732cdf676f94c0a36cdeb08 (patch) | |
tree | fc83e086646eb81d66324d09ad2b92ca12a5f444 | |
parent | 304d222168e3a70c216d669e20e158110f2a22ef (diff) | |
download | Servo-a8614edb85a3bfaa6732cdf676f94c0a36cdeb08.tar.gz Servo-a8614edb85a3bfaa6732cdf676f94c0a36cdeb08.tar.bz2 Servo-a8614edb85a3bfaa6732cdf676f94c0a36cdeb08.zip |
Cleanup
-rw-r--r-- | servo/urls/order.py | 1 | ||||
-rw-r--r-- | servo/views/account.py | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/servo/urls/order.py b/servo/urls/order.py index 4a4f018..39badfa 100644 --- a/servo/urls/order.py +++ b/servo/urls/order.py @@ -11,6 +11,7 @@ urlpatterns = patterns( "servo.views.order", url(r'^$', 'list_orders', name='orders-index'), + url(r'^\?queue=(?P<queue>\d+)$', 'list_orders', name='orders-list_queue'), url(r'^search/$', 'search', name="orders-search"), url(r'^batch/$', 'batch_process', name="orders-batch_process"), url(r'^download/$', 'download_results', name="orders-download_results"), 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 |