Django Monthly Development Report — July 2026
- Commits summarized
- 70
- Period
- Jul 01 - Jul 31, 2026
- Published
- Aug 01, 2026
Highlights from 70 commits over the month of July 2026. This edition covers security releases, free-threaded Python CI, async error handling improvements, admin permission fixes, and a host of documentation and maintenance updates. If you maintain a Django site, contribute to the project, or simply keep an eye on where the framework is headed, these are the changes worth knowing about.
Security Releases
Three CVEs were issued and patched this month. If you are on a supported release, upgrading to 6.0.8 (or later) is strongly recommended.
- CVE-2026-48588 — Prevented caching of responses that both set cookies and vary on
Cookie. Previously an unrelated cookie on the request could bypass the guard, allowing a newly-issued session cookie to be stored in the shared cache. (commit) - CVE-2026-53877 — Prevented a heap buffer over-read when creating a
GDALRasterfrom bytes. The fix switches fromsys.getsizeof()tolen()to obtain the correct byte size. (commit) - CVE-2026-53878 — Newlines are no longer accepted in
DomainNameValidator, closing an injection vector. (commit)
Stub release notes for 6.0.8 were added and the CVEs were archived shortly after. (commit 1, commit 2)
Free-Threaded Python ("nogil") Support
Work continued on making Django compatible with Python's free-threaded builds (3.13t and 3.14t).
- CI tests added for Python 3.13t and 3.14t. (commit)
- GC-specific tests are now skipped when the GIL is disabled. (commit)
- Race condition fixed in
ExceptionReporterTestsunder free-threading. (commit) - The
asgirefdependency was updated to a version compatible with the free-threaded work. (commit)
Async & ASGI
- Error response rendering is now thread-sensitive.
response_for_exceptionwas previously dispatched on the event loop's default executor, which could lead to connection pool exhaustion and deadlock under ASGI. Moving it to the request-specific sensitive worker thread resolves both issues. (commit) - Documented that
on-demand fetchingis sync-only. (commit)
Admin
- Consistent 403 responses. The admin
view_on_siteandhistoryviews now return HTTP 403 when a staff user lacks the required permission, matching the behaviour of the changeform and autocomplete views. (commit) - Arrow button position fixed in the
filter_verticalwidget. (commit) ModelAdmindeprecation warnings now point to the correct code location using the newwarn_about_implementation()utility. (commit 1, commit 2)- Further shared features of
InlineModelAdminare now documented. (commit)
Management Commands
- Suppressed fewer
ImportErrors. Commands that require settings (the default) now print the error to stderr and exit non-zero when settings loading fails. Onlymakemessages,runserver,shell, andstartprojectcontinue to tolerate missing settings. (commit)
Models & Migrations
- Migrations now track all changes to unmanaged models. Previously, only create and delete operations were generated for unmanaged models. (commit)
- Restored missing Index options in
PostGISSchemaEditor._create_spatial_index_sql(). (commit) - Normalized field names are now used for composite primary keys in
inspectdb. (commit) - Regression test added for
sqlite_schemaforeign key detection ininspectdb. (commit)
Forms & Validation
encode_multipart()now preserves all values per key when data is aMultiValueDict, fixing a silent data loss bug when form fields and file uploads share the same name. (commit)JSONField'shas_changedmethod now checks for disabled status. (commit)
Utility & Core
import_string()now supports top-level modules, not just submodules. Previously, a top-level module would only work if it was already imported. (commit)non_atomic_requests()no longer mutates the original view. It now returns a new wrapper instead of modifying the_non_atomic_requestsattribute in place. (commit)MiddlewareMixinmoved out ofutils.deprecationas part of ongoing cleanup. (commit)cached_dbsession backend now logs cache delete failures, making silent failures easier to debug. (commit)
Documentation
- Contact form example overhauled. The
ContactFormdocs now use safe email practices (no user-providedfrom_email, nocc_myselfspam risk, added anti-phishing content). (commit) - Email security section reworked. Added guidance on safely formatting email addresses with display names, and clarified that Django already prevents CRLF injection. (commit)
- XSS security section improved. (commit)
- Dark mode support added to technical 404 and 500 error views. (commit)
- Epub builds fixed: Console directives now render as plain code blocks instead of broken tab markup. (commit)
- GeneratedField example added to PostgreSQL search reference. (commit)
cache_pagebehaviour documented: it caches responses before response middleware runs. (commit)- Many minor typos, grammar fixes, and version reference updates across the docs and docstrings. (commit)
CI & Tooling
- GitHub Action versions bumped across workflows. (commit)
- Gettext installed in CI workflows to prevent test skips. (commit)
- Dependency installation unified across workflows. (commit)
- Concurrency fix for the
labels.ymlGitHub Action. (commit) - Translation catalogs updated. (commit)
This report summarizes the 70 commits made to the django/django repository between July 1 and July 31, 2026.
Want to contribute? Check out the contributing guide and the ticket tracker.