diff --git a/CHANGELOG.md b/CHANGELOG.md index 9f69276..e024986 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,7 @@ ## Next Release * Added support for Python 3.13. +* Changed `id` for help text to align with aria-describedby attribute added by Django 5.0+. ## 2024.10 (2024-10-05) diff --git a/crispy_bootstrap4/templates/bootstrap4/layout/help_text.html b/crispy_bootstrap4/templates/bootstrap4/layout/help_text.html index 3b5695c..fdea718 100644 --- a/crispy_bootstrap4/templates/bootstrap4/layout/help_text.html +++ b/crispy_bootstrap4/templates/bootstrap4/layout/help_text.html @@ -1,7 +1,7 @@ {% if field.help_text %} {% if help_text_inline %} - {{ field.help_text|safe }} + {{ field.help_text|safe }} {% else %} - {{ field.help_text|safe }} + {{ field.help_text|safe }} {% endif %} {% endif %} diff --git a/tests/results/bootstrap4/test_form_helper/bootstrap_form_show_errors_bs4_false.html b/tests/results/bootstrap4/test_form_helper/bootstrap_form_show_errors_bs4_false.html index 64982b3..9bd16d5 100644 --- a/tests/results/bootstrap4/test_form_helper/bootstrap_form_show_errors_bs4_false.html +++ b/tests/results/bootstrap4/test_form_helper/bootstrap_form_show_errors_bs4_false.html @@ -7,7 +7,7 @@ class="textinput textInput inputtext form-control is-invalid" required id="id_email" />