forked from DGNum/gestioCOF
fix l'export des membres du COF
This commit is contained in:
parent
c8fb4cdbe9
commit
315606e254
1 changed files with 2 additions and 2 deletions
|
@ -415,7 +415,7 @@ def export_members(request):
|
||||||
def csv_export_mega(filename, qs):
|
def csv_export_mega(filename, qs):
|
||||||
response = HttpResponse(content_type = 'text/csv')
|
response = HttpResponse(content_type = 'text/csv')
|
||||||
response['Content-Disposition'] = 'attachment; filename=' + filename
|
response['Content-Disposition'] = 'attachment; filename=' + filename
|
||||||
writer = unicodecsv.UnicodeWriter(response)
|
writer = unicodecsv.writer(response)
|
||||||
|
|
||||||
for reg in qs.all():
|
for reg in qs.all():
|
||||||
user = reg.user
|
user = reg.user
|
||||||
|
@ -431,7 +431,7 @@ def export_mega_remarksonly(request):
|
||||||
filename = 'remarques_mega_2015.csv'
|
filename = 'remarques_mega_2015.csv'
|
||||||
response = HttpResponse(content_type = 'text/csv')
|
response = HttpResponse(content_type = 'text/csv')
|
||||||
response['Content-Disposition'] = 'attachment; filename=' + filename
|
response['Content-Disposition'] = 'attachment; filename=' + filename
|
||||||
writer = unicodecsv.UnicodeWriter(response)
|
writer = unicodecsv.writer(response)
|
||||||
|
|
||||||
event = Event.objects.get(title = "Mega 15")
|
event = Event.objects.get(title = "Mega 15")
|
||||||
commentfield = event.commentfields.get(name = "Commentaires")
|
commentfield = event.commentfields.get(name = "Commentaires")
|
||||||
|
|
Loading…
Reference in a new issue