Přidat hlavičku

This commit is contained in:
MaM Web user 2022-03-04 22:55:59 +01:00
parent 350041c587
commit 64bd360716

View file

@ -142,6 +142,9 @@ def exportSeznamuPrednasekNeHodnoceni(req, seznam):
'obtiznost',
'popis',
)
# Hlavička
writer.writerow(attrs)
# Tělo
for predn in Prednaska.objects.filter(seznamy=seznam):
row = [getattr(predn, attr) for attr in attrs]
writer.writerow(row)