Email roll to schools function

This commit is contained in:
John Mullins
2023-09-01 15:18:20 +10:00
parent 99530513c1
commit d051bc8beb
6 changed files with 107 additions and 10 deletions
+2 -2
View File
@@ -7,7 +7,7 @@ from django.http import HttpResponse
from django.template.loader import get_template
from xhtml2pdf import pisa
from coord.context_helpers import bus_roll_context, school_roll_context
from coord.context_helpers import bus_roll_context, school_travellerRoute_context
from coord.models import Company
@@ -49,7 +49,7 @@ def email_companies_bus_roll(request, query_set=None):
def email_school_roll_csv(request, school):
travellers = school_roll_context(school)
travellers = school_travellerRoute_context(school)
csvFile = StringIO()
fieldnames = list(travellers[0].keys())