From 4bb512c94fad807a34bad96f628887ac108c3d2a Mon Sep 17 00:00:00 2001
From: csae8092
Date: Fri, 10 Jan 2025 12:35:49 +0100
Subject: [PATCH] closes #291
---
pmb/settings.py | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/pmb/settings.py b/pmb/settings.py
index be89df6..3e27e6f 100644
--- a/pmb/settings.py
+++ b/pmb/settings.py
@@ -43,6 +43,7 @@
"django.contrib.messages",
"django.contrib.staticfiles",
"rest_framework",
+ "csvexport",
"browsing",
"crispy_forms",
"crispy_bootstrap5",
@@ -331,3 +332,12 @@
("schnitzler-zeitungen.", "schnitzler-zeitungen", "#8E8575"),
("schnitzler-mikrofilme.", "schnitzler-mikrofilme", "#6e7b8b"),
]
+
+
+CSV_EXPORT_REFERENCE_DEPTH = 1
+CSV_EXPORT_DELIMITER = ','
+CSV_EXPORT_ESCAPECHAR = '|'
+CSV_EXPORT_QUOTECHAR = '"'
+CSV_EXPORT_DOUBLEQUOTE = True
+CSV_EXPORT_LINETERMINATOR = r'\n'
+CSV_EXPORT_QUOTING = 'QUOTE_ALL'