Navigation Menu

Skip to content

Commit

Permalink
Manually order these with stoponroute.order
Browse files Browse the repository at this point in the history
This is because ordering isn't preserved on through tables
  • Loading branch information
davbo committed May 31, 2012
1 parent f160cf5 commit dd456b3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions molly/apps/places/views.py
Expand Up @@ -729,7 +729,7 @@ def initial_context(self, request, scheme, value):
i += 1
calling_points.append(calling_point)
service = {
'entities': route.stops.all(),
'entities': route.stops.all().order_by('stoponroute__order'),
'operator': route.operator,
'has_timetable': False,
'has_realtime': False,
Expand Down Expand Up @@ -856,7 +856,7 @@ def initial_context(self, request, route, id):
calling_points.append(calling_point)

service = {
'entities': route.stops.all(),
'entities': route.stops.all().order_by('stoponroute__order'),
'operator': route.operator,
'has_timetable': False,
'has_realtime': False,
Expand Down

0 comments on commit dd456b3

Please sign in to comment.