Permalink
Browse files

Quote instance label to perform exact search.

  • Loading branch information...
1 parent de55c17 commit acfe75f9189c4e5bb35ea80fc7f0da38bd5b1ffd @dracos dracos committed Feb 13, 2014
Showing with 1 addition and 1 deletion.
  1. +1 −1 speeches/search.py
View
@@ -46,7 +46,7 @@ def __init__(self, *args, **kwargs):
def build_form(self, *args, **kwargs):
sqs = SearchQuerySet()
- sqs = sqs.narrow('instance:%s' % self.request.instance.label)
+ sqs = sqs.narrow('instance:"%s"' % self.request.instance.label)
self.searchqueryset = sqs
return super(InstanceSearchView, self).build_form(*args, **kwargs)

0 comments on commit acfe75f

Please sign in to comment.