Skip to content

Commit 3ee4dcd

Browse files
authored
Drop Django 4.2 to 5.1 support (#1196)
These versions are all EOL since April.
1 parent 7bf0b6f commit 3ee4dcd

6 files changed

Lines changed: 95 additions & 181 deletions

File tree

docs/changelog.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22
Changelog
33
=========
44

5+
Unreleased
6+
----------
7+
8+
* Drop Django 4.2 to 5.1 support.
9+
510
* Drop Python 3.9 support.
611

712
4.19.0 (2025-09-18)

docs/installation.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Requirements
66

77
Python 3.10 to 3.14 supported.
88

9-
Django 4.2 to 6.0 supported.
9+
Django 5.2 to 6.0 supported.
1010

1111
Tested on MySQL 8.4+ and MariaDB 10.6+.
1212

pyproject.toml

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,6 @@ requires-python = ">=3.10"
2626
classifiers = [
2727
"Development Status :: 5 - Production/Stable",
2828
"Framework :: Django",
29-
"Framework :: Django :: 4.2",
30-
"Framework :: Django :: 5.0",
31-
"Framework :: Django :: 5.1",
3229
"Framework :: Django :: 5.2",
3330
"Framework :: Django :: 6.0",
3431
"Intended Audience :: Developers",
@@ -45,7 +42,7 @@ classifiers = [
4542
"Typing :: Typed",
4643
]
4744
dependencies = [
48-
"django>=4.2",
45+
"django>=5.2",
4946
]
5047
urls.Changelog = "https://django-mysql.readthedocs.io/en/latest/changelog.html"
5148
urls.Documentation = "https://django-mysql.readthedocs.io/"
@@ -71,19 +68,13 @@ docs = [
7168
"sphinx-build-compatibility",
7269
"sphinx-copybutton>=0.5.2",
7370
]
74-
django42 = [ "django>=4.2a1,<5; python_version>='3.8'" ]
75-
django50 = [ "django>=5a1,<5.1; python_version>='3.10'" ]
76-
django51 = [ "django>=5.1a1,<5.2; python_version>='3.10'" ]
7771
django52 = [ "django>=5.2a1,<6; python_version>='3.10'" ]
7872
django60 = [ "django>=6a1,<6.1; python_version>='3.12'" ]
7973

8074
[tool.uv]
8175
sources.sphinx-build-compatibility = { git = "https://github.com/readthedocs/sphinx-build-compatibility", rev = "4f304bd4562cdc96316f4fec82b264ca379d23e0" }
8276
conflicts = [
8377
[
84-
{ group = "django42" },
85-
{ group = "django50" },
86-
{ group = "django51" },
8778
{ group = "django52" },
8879
{ group = "django60" },
8980
],

tests/testapp/test_bit1_field.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
import json
44

5-
import django
65
from django.core import checks, serializers
76
from django.db import models
87
from django.db.models import F
@@ -100,10 +99,7 @@ def test_check_deprecated(self):
10099
class Invalid(models.Model):
101100
nb = NullBit1BooleanField()
102101

103-
if django.VERSION >= (5, 0):
104-
hint = "Use BooleanField(null=True, blank=True) instead."
105-
else:
106-
hint = "Use BooleanField(null=True) instead."
102+
hint = "Use BooleanField(null=True, blank=True) instead."
107103

108104
assert Invalid.check() == [
109105
checks.Error(

tox.ini

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@ requires =
33
tox>=4.2
44
env_list =
55
py314-django{60, 52}
6-
py313-django{60, 52, 51}
7-
py312-django{60, 52, 51, 50, 42}
8-
py311-django{52, 51, 50, 42}
9-
py310-django{52, 51, 50, 42}
6+
py313-django{60, 52}
7+
py312-django{60, 52}
8+
py311-django{52}
9+
py310-django{52}
1010

1111
[testenv]
1212
runner = uv-venv-lock-runner

0 commit comments

Comments
 (0)