diff --git a/CHANGELOG.md b/CHANGELOG.md index 689a4e35..18954b6b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,7 +2,6 @@ ## In development -- Make sure that field errors are always visible (#767, @xi). - Add support for Python 3.14 (#774). - Add support for Django 6.0 (#773). - Update settings.rst (#756, @inpool). diff --git a/src/django_bootstrap5/templates/django_bootstrap5/field_errors.html b/src/django_bootstrap5/templates/django_bootstrap5/field_errors.html index 93b2eabd..ab00ed7b 100644 --- a/src/django_bootstrap5/templates/django_bootstrap5/field_errors.html +++ b/src/django_bootstrap5/templates/django_bootstrap5/field_errors.html @@ -1,7 +1,7 @@ {% if field_errors %} -
+
{% for text in field_errors %} -
{{ text }}
+
{{ text }}
{% endfor %}
{% endif %} diff --git a/tests/test_bootstrap_field_input_checkbox.py b/tests/test_bootstrap_field_input_checkbox.py index 54c81a3e..0d4e3252 100644 --- a/tests/test_bootstrap_field_input_checkbox.py +++ b/tests/test_bootstrap_field_input_checkbox.py @@ -39,8 +39,8 @@ def test_input_type_checkbox_is_invalid(self): '
' '' '' - '
' - '
This field is required.
' + '
' + '
This field is required.
' "
" "
" "
" diff --git a/tests/test_bootstrap_field_input_text.py b/tests/test_bootstrap_field_input_text.py index 3daf2365..f2bd9caa 100644 --- a/tests/test_bootstrap_field_input_text.py +++ b/tests/test_bootstrap_field_input_text.py @@ -43,8 +43,8 @@ def test_input_type_text(self): '' '' - '
' - '
This field is required.
' + '
' + '
This field is required.
' "
" "
" ), @@ -201,8 +201,8 @@ def test_input_validation_failure(self): 'foo' '' - '
' - '
This field is required.
' + '
' + '
This field is required.
' "
" "
" "
"