csv export: comma-seperated lists (instead of semicolon)
authorJan Szejko <jan.szejko@gmail.com>
Tue, 10 May 2016 08:24:31 +0000 (10:24 +0200)
committerJan Szejko <jan.szejko@gmail.com>
Tue, 10 May 2016 08:24:31 +0000 (10:24 +0200)
contact/admin.py

index 0a0aaa0..0a96792 100644 (file)
@@ -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([])