Skip to content

Commit

Permalink
Fix for api search
Browse files Browse the repository at this point in the history
  • Loading branch information
jgadelange committed Jul 29, 2015
1 parent 595b80c commit 5e6d5bd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dienst2/api_helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def get_search(self, request, **kwargs):
# Do the query.
q = request.GET.get('q', '')
mod = request.GET.get('mod', 'default')
sqs = SearchQuerySet().models(Model).load_all().filter(text=convert_free_search(q, mod))
sqs = SearchQuerySet().models(Model).load_all().filter(text=Raw(convert_free_search(q, mod)))
sqs = filter(None, sqs)
paginator = Paginator(sqs, 20)

Expand Down

0 comments on commit 5e6d5bd

Please sign in to comment.