Commit a8b3f778 authored by Michal Čihař's avatar Michal Čihař

Fix exact search

parent 68000311
......@@ -300,7 +300,7 @@ def translate(request, project, subproject, lang):
query |= Q(target = search_query)
if search_context:
query |= Q(context = search_query)
units = units.filter(query)
units = obj.unit_set.filter(query)
else:
units = obj.unit_set.search(search_query, search_source, search_context, search_target)
if direction == 'stay':
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment