diff --git a/src/django_bootstrap5/templates/django_bootstrap5/field_errors.html b/src/django_bootstrap5/templates/django_bootstrap5/field_errors.html index ab00ed7b..fed41f86 100644 --- a/src/django_bootstrap5/templates/django_bootstrap5/field_errors.html +++ b/src/django_bootstrap5/templates/django_bootstrap5/field_errors.html @@ -1,5 +1,6 @@ {% if field_errors %}
+
{% for text in field_errors %}
{{ text }}
{% endfor %} diff --git a/tests/test_bootstrap_field_input_checkbox.py b/tests/test_bootstrap_field_input_checkbox.py index 0d4e3252..aaea7167 100644 --- a/tests/test_bootstrap_field_input_checkbox.py +++ b/tests/test_bootstrap_field_input_checkbox.py @@ -40,6 +40,7 @@ def test_input_type_checkbox_is_invalid(self): '' '' '
' + '
' '
This field is required.
' "
" "
" diff --git a/tests/test_bootstrap_field_input_text.py b/tests/test_bootstrap_field_input_text.py index f2bd9caa..523ed718 100644 --- a/tests/test_bootstrap_field_input_text.py +++ b/tests/test_bootstrap_field_input_text.py @@ -44,6 +44,7 @@ def test_input_type_text(self): '' '
' + '
' '
This field is required.
' "
" "" @@ -202,6 +203,7 @@ def test_input_validation_failure(self): '' '
' + '
' '
This field is required.
' "
" ""