Update to Django 4.2 (need to fix API)

This commit is contained in:
Jean-Baptiste Doderlein 2023-11-07 15:01:10 +01:00
parent b03bc3cca4
commit 8c57eb8096
5 changed files with 49 additions and 2 deletions

View file

@ -9,7 +9,12 @@ SPDX-License-Identifier: GPL-3.0-or-later
name="{{ widget.name }}"
{# Other attributes are loaded #}
{% for name, value in widget.attrs.items %}
{% ifnotequal value False %}{{ name }}{% ifnotequal value True %}="{{ value|stringformat:'s' }}"{% endifnotequal %}{% endifnotequal %}
{% if value != False %}
{{ name }}
{% if value != True %}
="{{ value|stringformat:'s' }}"
{% endif %}
{% endif %}
{% endfor %}>
<div class="input-group-append">
<span class="input-group-text"></span>