Opraven export CSV a mailu ucastniku.
This commit is contained in:
parent
f6895bc2e8
commit
d017542990
2 changed files with 2 additions and 2 deletions
|
@ -1 +1 @@
|
|||
{% for sous_ucast in object_list %}{{ sous_ucast.resitel.email }}{% if not forloop.last %}, {% endif %}{% endfor %}
|
||||
{% for sous_ucast in object_list %}{{ sous_ucast.resitel.osoba.email }}{% if not forloop.last %}, {% endif %}{% endfor %}
|
||||
|
|
|
@ -631,7 +631,7 @@ def soustredeniUcastniciExportView(request,soustredeni):
|
|||
writer = csv.writer(response)
|
||||
writer.writerow(["jmeno", "prijmeni", "rok_maturity", "telefon", "email", "ulice", "mesto", "psc","stat"])
|
||||
for u in ucastnici:
|
||||
writer.writerow([u.jmeno, u.prijmeni, str(u.rok_maturity), u.telefon, u.email, u.ulice, u.mesto, u.psc, u.stat.name])
|
||||
writer.writerow([u.osoba.jmeno, u.osoba.prijmeni, str(u.rok_maturity), u.osoba.telefon, u.osoba.email, u.osoba.ulice, u.osoba.mesto, u.osoba.psc, u.osoba.stat.name])
|
||||
return response
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue