django/django · Monthly · Jul 01, 2026 - Jul 31, 2026

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 GDALRaster from bytes. The fix switches from sys.getsizeof() to len() 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 ExceptionReporterTests under free-threading. (commit)
  • The asgiref dependency was updated to a version compatible with the free-threaded work. (commit)

Async & ASGI

  • Error response rendering is now thread-sensitive. response_for_exception was 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 fetching is sync-only. (commit)

Admin

  • Consistent 403 responses. The admin view_on_site and history views 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_vertical widget. (commit)
  • ModelAdmin deprecation warnings now point to the correct code location using the new warn_about_implementation() utility. (commit 1, commit 2)
  • Further shared features of InlineModelAdmin are 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. Only makemessages, runserver, shell, and startproject continue 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_schema foreign key detection in inspectdb. (commit)

Forms & Validation

  • encode_multipart() now preserves all values per key when data is a MultiValueDict, fixing a silent data loss bug when form fields and file uploads share the same name. (commit)
  • JSONField's has_changed method 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_requests attribute in place. (commit)
  • MiddlewareMixin moved out of utils.deprecation as part of ongoing cleanup. (commit)
  • cached_db session backend now logs cache delete failures, making silent failures easier to debug. (commit)

Documentation

  • Contact form example overhauled. The ContactForm docs now use safe email practices (no user-provided from_email, no cc_myself spam 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_page behaviour 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.yml GitHub 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.

Repository updates

Follow future updates

Get generated django/django development summaries without adding another panel to your dashboard.

Sign in to choose an email address and delivery schedule.

Sign in to subscribe