Moved roll some context to bus object

Added first_name to traveller ordering
This commit is contained in:
John Mullins
2023-10-11 13:22:02 +11:00
parent ff8b4c21fc
commit d4a6113e31
4 changed files with 7 additions and 7 deletions
+1 -1
View File
@@ -59,7 +59,7 @@ def bus_roll_context(queryset=None):
})
shuttle_count += 1
bus_routes.append({'route_name': bus.route_name, 'company': bus.company, 'traveller_count': traveller_count, 'seating_capacity': bus.seating_capacity, 'route_stops': route_stops, 'shuttle_count': shuttle_count, 'shuttle_travellers': shuttle_travellers})
bus_routes.append({'bus': bus, 'traveller_count': traveller_count, 'route_stops': route_stops, 'shuttle_count': shuttle_count, 'shuttle_travellers': shuttle_travellers})
return {'routes': bus_routes}