diff options
author | Filipp Lepalaan <filipp@mac.com> | 2015-11-24 14:05:56 +0200 |
---|---|---|
committer | Filipp Lepalaan <filipp@mac.com> | 2015-11-24 14:05:56 +0200 |
commit | fd24b0faf8cf5961003461592540407dcdc15cff (patch) | |
tree | 05a9f307e92bbac483bce770eaa111b5a6f60c38 /servo | |
parent | 858e2044b8ea51a47a863e1f316db24f7d57a648 (diff) | |
download | Servo-fd24b0faf8cf5961003461592540407dcdc15cff.tar.gz Servo-fd24b0faf8cf5961003461592540407dcdc15cff.tar.bz2 Servo-fd24b0faf8cf5961003461592540407dcdc15cff.zip |
Handle empty search query
Diffstat (limited to 'servo')
-rw-r--r-- | servo/views/search.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/servo/views/search.py b/servo/views/search.py index 597e248..7640839 100644 --- a/servo/views/search.py +++ b/servo/views/search.py @@ -284,3 +284,6 @@ def spotlight(request): if hint == 'products': return products(request) + + messages.error(request, _('No search query provided')) + return redirect(reverse('orders-index')) |