Moved roll some context to bus object
Added first_name to traveller ordering
This commit is contained in:
@@ -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}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user