Commit 3645ced3 authored by Michal Čihař's avatar Michal Čihař

Fix going backwards in the translations list

parent 2b392ae7
......@@ -130,7 +130,7 @@ def translate(request, project, subproject, lang):
if direction == 'stay':
units = obj.unit_set.filter(position = pos)
elif direction == 'back':
units = obj.unit_set.filter_type(rqtype).filter(position__lt = pos)
units = obj.unit_set.filter_type(rqtype).filter(position__lt = pos).order_by('-position')
else:
units = obj.unit_set.filter_type(rqtype).filter(position__gt = pos)
......
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