Fix going backwards in the translations list
This commit is contained in:
parent
2b392ae71c
commit
3645ced3e8
@ -130,7 +130,7 @@ def translate(request, project, subproject, lang):
|
|||||||
if direction == 'stay':
|
if direction == 'stay':
|
||||||
units = obj.unit_set.filter(position = pos)
|
units = obj.unit_set.filter(position = pos)
|
||||||
elif direction == 'back':
|
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:
|
else:
|
||||||
units = obj.unit_set.filter_type(rqtype).filter(position__gt = pos)
|
units = obj.unit_set.filter_type(rqtype).filter(position__gt = pos)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user