Skip to content

[pull] main from django:main - #552

Merged
pull[bot] merged 4 commits into
threatcode:mainfrom
django:main
Sep 5, 2026
Merged

[pull] main from django:main#552
pull[bot] merged 4 commits into
threatcode:mainfrom
django:main

Conversation

@pull

@pull pull Bot commented Sep 5, 2026

Copy link
Copy Markdown

See Commits and Changes for more details.


Created by pull[bot] (v2.0.0-alpha.4)

Can you help keep this open source service alive? 💖 Please sponsor : )

nessita and others added 4 commits September 4, 2026 15:19
…ecation.

django.utils.deprecation imported django.middleware.MiddlewareMixin at
module level, solely to serve its deprecated __getattr__ import path.
That gave the module a hard dependency on asgiref (via django.middleware)
merely to be imported, which breaks in contexts where Django's own
runtime dependencies aren't installed yet, such as a PEP 517 build
backend resolving django.__version__ before installing install_requires.
From Django 2028, feature releases are calendar versioned as YYYY[.N],
where N is the patch number, as per DEP 20. A version is now read as the
numbers of the printed version followed by the status and its iteration,
so calendar versions have four components, (year, patch, status,
iteration), while the earlier scheme keeps its five.

django.VERSION is now a VersionTuple, providing `.feature`, `.patch`,
`.status`, and `.iteration` attributes which give the same answers under
both schemes. Indexing it from its third component on, reading it in a
way which depends on its length, and comparing it against three or more
components are deprecated, as each breaks or silently changes meaning
when the tuple loses a component.

Thanks Carlton Gibson for reviews.
…ue and no tzinfo.

In Django 2029, the current timezone will be stored in the migration.
@pull pull Bot locked and limited conversation to collaborators Sep 5, 2026
@pull pull Bot added the ⤵️ pull label Sep 5, 2026
@pull
pull Bot merged commit b3f4d83 into threatcode:main Sep 5, 2026
18 of 19 checks passed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants