aboutsummaryrefslogtreecommitdiffstats
path: root/servo
diff options
context:
space:
mode:
authorFilipp Lepalaan <filipp@mac.com>2015-08-17 02:21:54 +0300
committerFilipp Lepalaan <filipp@mac.com>2015-08-17 02:21:54 +0300
commit7fe34f359066657c87146e3cb90e8cf1d5716678 (patch)
tree6548dd41758651817a54588a2f57c4f410f864bf /servo
parent8565e4dc0b7acd16078700c03031beca8d26be77 (diff)
downloadServo-7fe34f359066657c87146e3cb90e8cf1d5716678.tar.gz
Servo-7fe34f359066657c87146e3cb90e8cf1d5716678.tar.bz2
Servo-7fe34f359066657c87146e3cb90e8cf1d5716678.zip
Fix spurious "'dict' object has no attribute 'getlist'"
Diffstat (limited to 'servo')
-rw-r--r--servo/views/order.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/servo/views/order.py b/servo/views/order.py
index 00767ab..a31948c 100644
--- a/servo/views/order.py
+++ b/servo/views/order.py
@@ -303,11 +303,13 @@ def list_orders(request):
orders/index
"""
args = request.GET.copy()
- default = QueryDict('state={0}'.format(Order.STATE_QUEUED))
+ default = {'state': Order.STATE_QUEUED}
if len(args) < 2: # search form not submitted
- args = request.session.get("order_search_filter", default)
-
+ f = request.session.get("order_search_filter", default)
+ args = QueryDict('', mutable=True)
+ args.update(f)
+
request.session['order_search_filter'] = args
data = prepare_list_view(request, args)