Skip to content

Commit 8469c3a

Browse files
authored
Dropped support for Django versions prior to 5.2. (#40)
* Dropped support for Django versions prior to 5.2. Following release of Django 6.0 in December 2025 it is suggested that 3rd-party apps drop support for all versions of Django prior to 5.2. https://docs.djangoproject.com/en/6.0/releases/6.0/
1 parent 787c16f commit 8469c3a

24 files changed

Lines changed: 92 additions & 930 deletions

.github/workflows/publish.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,6 @@ jobs:
1212
strategy:
1313
matrix:
1414
python-version:
15-
- '3.8'
16-
- '3.9'
1715
- '3.10'
1816
- '3.11'
1917
- '3.12'

.github/workflows/test.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,6 @@ jobs:
1414
strategy:
1515
matrix:
1616
python-version:
17-
- '3.8'
18-
- '3.9'
1917
- '3.10'
2018
- '3.11'
2119
- '3.12'

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
# CHANGELOG FOR CRISPY-BOOTSTRAP4
22

3+
## Next Release (TBC)
4+
* Removed support for Django 4.2, 5.0 and 5.1.
5+
36
## 2025.6 (2025-06-08)
47

58
* Added support for Python 3.13.

crispy_bootstrap4/templates/bootstrap4/layout/field_errors.html

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,5 @@
11
{% if form_show_errors and field.errors %}
2-
{% if field.errors.field_id %}
3-
{# Django 5.2+ #}
4-
<div id="{{field.errors.field_id}}_error" class="invalid-feedback">
5-
{% else %}
6-
<div id="{{field.auto_id}}_error" class="invalid-feedback">
7-
{% endif %}
2+
<div id="{{field.errors.field_id}}_error" class="invalid-feedback">
83
{% for error in field.errors %}
94
<span id="error_{{ forloop.counter }}_{{ field.auto_id }}"><strong>{{ error }}</strong></span>
105
{% endfor %}

crispy_bootstrap4/templates/bootstrap4/layout/field_errors_block.html

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,5 @@
11
{% if form_show_errors and field.errors %}
2-
{% if field.errors.field_id %}
3-
{# Django 5.2+ #}
4-
<div id="{{field.errors.field_id}}_error" class="invalid-feedback">
5-
{% else %}
6-
<div id="{{field.auto_id}}_error" class="invalid-feedback">
7-
{% endif %}
2+
<div id="{{field.errors.field_id}}_error" class="invalid-feedback">
83
{% for error in field.errors %}
94
<p id="error_{{ forloop.counter }}_{{ field.auto_id }}"><strong>{{ error }}</strong></p>
105
{% endfor %}

pyproject.toml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,13 @@ classifiers=[
1515
"Environment :: Web Environment",
1616
"Development Status :: 5 - Production/Stable",
1717
"Framework :: Django",
18-
"Framework :: Django :: 4.2",
19-
"Framework :: Django :: 5.0",
20-
"Framework :: Django :: 5.1",
2118
"Framework :: Django :: 5.2",
19+
20+
21+
2222
"Operating System :: OS Independent",
2323
"License :: OSI Approved :: MIT License",
2424
"Programming Language :: Python :: 3",
25-
"Programming Language :: Python :: 3.8",
26-
"Programming Language :: Python :: 3.9",
2725
"Programming Language :: Python :: 3.10",
2826
"Programming Language :: Python :: 3.11",
2927
"Programming Language :: Python :: 3.12",

tests/results/bootstrap4/test_form_helper/bootstrap_form_show_errors_bs4_false_lt50.html

Lines changed: 0 additions & 69 deletions
This file was deleted.

tests/results/bootstrap4/test_form_helper/bootstrap_form_show_errors_bs4_false_lt52.html

Lines changed: 0 additions & 72 deletions
This file was deleted.

tests/results/bootstrap4/test_form_helper/bootstrap_form_show_errors_bs4_true_lt50.html

Lines changed: 0 additions & 74 deletions
This file was deleted.

tests/results/bootstrap4/test_form_helper/bootstrap_form_show_errors_bs4_true_lt52.html

Lines changed: 0 additions & 77 deletions
This file was deleted.

0 commit comments

Comments
 (0)