aboutsummaryrefslogtreecommitdiffstats
path: root/servo/views
diff options
context:
space:
mode:
Diffstat (limited to 'servo/views')
-rw-r--r--servo/views/search.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/servo/views/search.py b/servo/views/search.py
index 219318b..597e248 100644
--- a/servo/views/search.py
+++ b/servo/views/search.py
@@ -5,6 +5,7 @@ import gsxws
from django.db.models import Q
from django.core.cache import cache
+from django.contrib import messages
from django.shortcuts import render, redirect
from django.core.urlresolvers import reverse
from django.utils.translation import ugettext as _
@@ -167,7 +168,7 @@ def orders(request):
if not query or len(query) < 3:
messages.error(request, _('Search query is too short'))
- return redirect(list_orders)
+ return redirect(reverse('orders-index'))
request.session['search_query'] = query