reverse sorting in location list and when determining point location
This commit is contained in:
parent
5facc7827d
commit
1c70dbefc2
2 changed files with 2 additions and 2 deletions
|
@ -56,7 +56,7 @@ class Route:
|
|||
print(point.arealocations)
|
||||
locations = sorted(AreaLocation.objects.filter(location_type__in=('room', 'level', 'area'),
|
||||
name__in=point.arealocations),
|
||||
key=AreaLocation.get_sort_key)
|
||||
key=AreaLocation.get_sort_key, reverse=True)
|
||||
|
||||
if not locations:
|
||||
return _('Unknown Location'), _('Unknown Location')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue