Přidat hlavičku
This commit is contained in:
parent
350041c587
commit
64bd360716
1 changed files with 3 additions and 0 deletions
|
@ -142,6 +142,9 @@ def exportSeznamuPrednasekNeHodnoceni(req, seznam):
|
||||||
'obtiznost',
|
'obtiznost',
|
||||||
'popis',
|
'popis',
|
||||||
)
|
)
|
||||||
|
# Hlavička
|
||||||
|
writer.writerow(attrs)
|
||||||
|
# Tělo
|
||||||
for predn in Prednaska.objects.filter(seznamy=seznam):
|
for predn in Prednaska.objects.filter(seznamy=seznam):
|
||||||
row = [getattr(predn, attr) for attr in attrs]
|
row = [getattr(predn, attr) for attr in attrs]
|
||||||
writer.writerow(row)
|
writer.writerow(row)
|
||||||
|
|
Loading…
Reference in a new issue