-
-
Notifications
You must be signed in to change notification settings - Fork 321
Closed
Labels
Description
It looks like with Django 5.2 this
{% for fieldset in fieldsets %}
<fieldset class="module{% if fieldset.collapse %} collapse{% endif %}">
<h2>{{ fieldset.title }}</h2>
{% with config_values=fieldset.config_values %}
{% include "admin/constance/includes/results_list.html" %}
{% endwith %}
</fieldset>
{% endfor %}Should be updated to:
{% for fieldset in fieldsets %}
<fieldset class="module{% if fieldset.collapse %} collapse{% endif %}">
<details>
<summary>
<h2 class="fieldset-heading">{{ fieldset.title }}</h2>
<summary>
{% with config_values=fieldset.config_values %}
{% include "admin/constance/includes/results_list.html" %}
{% endwith %}
</details>
</fieldset>
{% endfor %}Would you accept a PR for this?
Would put a % if django_version >= "5.2" %} wrapper and duplicate the section
Reactions are currently unavailable