From d92c87e1e4d0d6fa74f6941c559fec047499fd5c Mon Sep 17 00:00:00 2001
From: Felix Blanke <info@fblanke.de>
Date: Wed, 29 May 2024 19:14:06 +0200
Subject: [PATCH] Add empty info dict to json export

---
 AKModel/templates/admin/AKModel/ak_json_export.html | 3 ++-
 AKModel/views/ak.py                                 | 2 ++
 2 files changed, 4 insertions(+), 1 deletion(-)

diff --git a/AKModel/templates/admin/AKModel/ak_json_export.html b/AKModel/templates/admin/AKModel/ak_json_export.html
index da582504..38e5526e 100644
--- a/AKModel/templates/admin/AKModel/ak_json_export.html
+++ b/AKModel/templates/admin/AKModel/ak_json_export.html
@@ -13,7 +13,8 @@
       {% endif %}{% endfor %}
     ],
   "participants": {{ participants }},
-  "timeslots": {{ timeslots }}
+  "timeslots": {{ timeslots }},
+  "info": {{ info_dict }}
   }
 </pre>
 {% endblock %}
diff --git a/AKModel/views/ak.py b/AKModel/views/ak.py
index a8e07d26..90c3ef6e 100644
--- a/AKModel/views/ak.py
+++ b/AKModel/views/ak.py
@@ -146,6 +146,8 @@ class AKJSONExportView(AdminViewMixin, FilterByEventSlugMixin, ListView):
 
         context["timeslots"] = json.dumps(timeslots)
 
+        context["info_dict"] = {}
+
         return context
 
 
-- 
GitLab