forked from DGNum/gestioCOF
fix l'export des membres du COF
This commit is contained in:
parent
40ad1f5f76
commit
c8fb4cdbe9
1 changed files with 1 additions and 1 deletions
|
@ -403,7 +403,7 @@ def export_members(request):
|
||||||
response = HttpResponse(content_type = 'text/csv')
|
response = HttpResponse(content_type = 'text/csv')
|
||||||
response['Content-Disposition'] = 'attachment; filename=membres_cof.csv'
|
response['Content-Disposition'] = 'attachment; filename=membres_cof.csv'
|
||||||
|
|
||||||
writer = unicodecsv.UnicodeWriter(response)
|
writer = unicodecsv.writer(response)
|
||||||
for profile in CofProfile.objects.filter(is_cof = True).all():
|
for profile in CofProfile.objects.filter(is_cof = True).all():
|
||||||
user = profile.user
|
user = profile.user
|
||||||
bits = [profile.num, user.username, user.first_name, user.last_name, user.email, profile.phone, profile.occupation, profile.departement, profile.type_cotiz]
|
bits = [profile.num, user.username, user.first_name, user.last_name, user.email, profile.phone, profile.occupation, profile.departement, profile.type_cotiz]
|
||||||
|
|
Loading…
Reference in a new issue