From 12a991f475e38cb7e2a32ef3afb4b733aeae4771 Mon Sep 17 00:00:00 2001 From: Filipp Lepalaan Date: Tue, 18 Aug 2015 23:36:50 +0300 Subject: Fixed profile page search --- servo/views/account.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'servo') diff --git a/servo/views/account.py b/servo/views/account.py index eb0bba1..c88c40a 100644 --- a/servo/views/account.py +++ b/servo/views/account.py @@ -91,7 +91,7 @@ def orders(request, username): args = request.GET.copy() default = {'state': Order.STATE_OPEN} - if not args: + if len(args) < 2: f = request.session.get("account_search_filter", default) args = QueryDict('', mutable=True) args.update(f) -- cgit v1.2.3