diff options
-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 |