aboutsummaryrefslogtreecommitdiffstats
path: root/servo
diff options
context:
space:
mode:
authorFilipp Lepalaan <filipp@mac.com>2016-11-07 18:43:49 +0200
committerFilipp Lepalaan <filipp@mac.com>2016-11-07 18:43:49 +0200
commit7904f7c5dc81f110bd820fe739087b3641ad891d (patch)
treea6f4088bbf07eef0c8e24f68f87178d268f28d9f /servo
parent7dbcacd01bec20db3ccb841bec1e8e4268a4b052 (diff)
downloadServo-7904f7c5dc81f110bd820fe739087b3641ad891d.tar.gz
Servo-7904f7c5dc81f110bd820fe739087b3641ad891d.tar.bz2
Servo-7904f7c5dc81f110bd820fe739087b3641ad891d.zip
Cleanup
Diffstat (limited to 'servo')
-rw-r--r--servo/tests/test_forms.py3
-rw-r--r--servo/views/order.py2
2 files changed, 2 insertions, 3 deletions
diff --git a/servo/tests/test_forms.py b/servo/tests/test_forms.py
index ef6ec1f..aa9fed9 100644
--- a/servo/tests/test_forms.py
+++ b/servo/tests/test_forms.py
@@ -5,7 +5,6 @@ from django.contrib.auth.models import AnonymousUser
from django.contrib.sessions.middleware import SessionMiddleware
from servo.models.common import Configuration
-
from servo.forms.checkin import CustomerForm
from servo.tests.test_views import add_middleware_to_request
@@ -17,4 +16,4 @@ class CheckinTestCase(TestCase):
request = factory.get('/checkin/')
request.user = AnonymousUser
request = add_middleware_to_request(request, SessionMiddleware)
- form = CustomerForm(request)
+ #form = CustomerForm(request)
diff --git a/servo/views/order.py b/servo/views/order.py
index 39ecb4c..835aaf4 100644
--- a/servo/views/order.py
+++ b/servo/views/order.py
@@ -276,7 +276,7 @@ def list_orders(request):
args = request.GET.copy()
default = {'state': Order.STATE_QUEUED}
- if len(args) < 2: # search form not submitted
+ if len(args) < 2: # search form not submitted
f = request.session.get("order_search_filter", default)
args = QueryDict('', mutable=True)
args.update(f)