django-bs

Bootstrap integration for django using widget templates
git clone https://git.ce9e.org/django-bs.git

commit
1e399fb523d233404364ebf26e898b033e8996d6
parent
36106d321311ea77173bbc137537aafa691b405b
Author
Tobias Bengfort <tobias.bengfort@posteo.de>
Date
2024-01-28 18:23
fix: add id to help text

required for aria-describedby

see https://docs.djangoproject.com/en/5.0/releases/5.0/#forms

Diffstat

M django_bs/templates/bs/field.html 2 +-

1 files changed, 1 insertions, 1 deletions


diff --git a/django_bs/templates/bs/field.html b/django_bs/templates/bs/field.html

@@ -27,7 +27,7 @@
   27    27         {% endif %}
   28    28     {% endif %}
   29    29     {% if field.help_text %}
   30    -1         <div class="form-text">{{ field.help_text }}</div>
   -1    30         <div class="form-text" id="{{ field.auto_id }}_helptext">{{ field.help_text }}</div>
   31    31     {% endif %}
   32    32     {% for error in field.errors %}
   33    33         <div class="form-text text-danger">{{ error }}</div>