From 7904f7c5dc81f110bd820fe739087b3641ad891d Mon Sep 17 00:00:00 2001 From: Filipp Lepalaan Date: Mon, 7 Nov 2016 18:43:49 +0200 Subject: Cleanup --- README.md | 1 + servo/tests/test_forms.py | 3 +-- servo/views/order.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index d1fe687..76ce80c 100644 --- a/README.md +++ b/README.md @@ -19,6 +19,7 @@ Main features include: The Obligatory Screenshots ========================== + ![Servo Screenshot 1](http://www.servoapp.com/img/screenshots/940/order1.png) ![Servo Screenshot 2](http://www.servoapp.com/img/screenshots/devices.png) ![Servo Screenshot 3](http://www.servoapp.com/img/screenshots/inventory.png) 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) -- cgit v1.2.3