Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Quote instance label to perform exact search.

  • Loading branch information...
commit acfe75f9189c4e5bb35ea80fc7f0da38bd5b1ffd 1 parent de55c17
@dracos dracos authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  speeches/search.py
View
2  speeches/search.py
@@ -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.
Something went wrong with that request. Please try again.