From: Jan Szejko Date: Tue, 10 May 2016 08:24:31 +0000 (+0200) Subject: csv export: comma-seperated lists (instead of semicolon) X-Git-Url: https://git.mdrn.pl/edumed.git/commitdiff_plain/a914aa2c68ea9b734510a210503b85d1f3869581?hp=30574b902abfedf033f7c71e65f8152a53b5cccc csv export: comma-seperated lists (instead of semicolon) --- diff --git a/contact/admin.py b/contact/admin.py index 0a0aaa0..0a96792 100644 --- a/contact/admin.py +++ b/contact/admin.py @@ -160,7 +160,7 @@ def extract_view(request, form_tag, extract_type_slug): if isinstance(record[key], bool): record[key] = 'tak' if record[key] else 'nie' if isinstance(record[key], (list, tuple)): - record[key] = '; '.join(record[key]) + record[key] = ', '.join(record[key]) csv_writer.writerow([record[key] for key in keys]) csv_writer.writerow([])