fix l'export des membres du COF

This commit is contained in:
ludo 2016-06-27 19:11:39 +02:00
parent 40ad1f5f76
commit c8fb4cdbe9

View file

@ -403,7 +403,7 @@ def export_members(request):
response = HttpResponse(content_type = 'text/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():
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]