Skip to content
Snippets Groups Projects
Commit 8ac9cd0b authored by Felix Blanke's avatar Felix Blanke
Browse files

Add oneliner

parent a54da7ac
No related branches found
No related tags found
2 merge requests!19Change json export to assemble a dict instead of sts in the template,!17Add view to clear schedule
Pipeline #274392 passed
......@@ -3,7 +3,18 @@
{% load tz %}
{% block content %}
<p>
Exported JSON:
<pre>
{{ json_data_oneline }}
</pre>
</p>
<p>
Exported JSON (indented for better readability):
<pre>
{{ json_data }}
</pre>
</p>
{% endblock %}
......@@ -193,6 +193,7 @@ class AKJSONExportView(AdminViewMixin, FilterByEventSlugMixin, ListView):
data["participants"] = []
data["aks"] = [ak.as_json_dict() for ak in context["slots"]]
context["json_data_oneline"] = json.dumps(data)
context["json_data"] = json.dumps(data, indent=2)
return context
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment