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
@@ -29,7 +29,7 @@ def email_companies_bus_roll(request, query_set=None):
company_route = []
for route in context.get("routes"):
if route.get("company") == company:
if route.get("bus").company == company:
company_route.append(route)
if not company_route:
continue