Django Weekly Development Report (July 20–26, 2026): Async error handling fix, GIS index restoration, and admin permission consistency
- Commits summarized
- 19
- Period
- Jul 20 - Jul 26, 2026
- Published
- Jul 27, 2026
Django Weekly Development Report
July 20 – July 26, 2026 — 19 commits in main
This report covers highlights from the 19 commits merged into Django's main branch this week. Whether you're an operator running Django under ASGI, a GIS user managing spatial indexes, or an admin site integrator, several fixes and documentation improvements directly affect your daily work.
🐛 Bug Fixes & Behaviour Changes
ASGI: Error-response rendering now thread‑sensitive
Fixed #36027 — Under ASGI, error-response handling (e.g. 500 pages) now runs on the request‑specific, connection‑sensitive worker thread instead of the event loop's default executor. Previously, the non-thread-sensitive dispatch could lead to database-pool exhaustion, deadlock when using connection pooling, or permanently held-open connections that only cleared on application restart. This is a significant reliability improvement for any production ASGI deployment.
GIS: Spatial-index options restored for PostGIS
Fixed #36694 — PostGISSchemaEditor._create_spatial_index_sql() was not forwarding Index options (such as name, condition, opclasses), causing them to be silently dropped when creating spatial indexes. Clifford Gama restored the missing options. A related test is skipped on Oracle where spatial index creation is unsupported.
Admin: Consistent PermissionDenied for view-on-site & history
Fixed #37160 — The admin's view_on_site and history views now return HTTP 403 when a staff user lacks view or change permission, matching the behaviour already present in changeform and autocomplete views.
inspectdb: Normalised composite primary‑key field names
Fixed #37203 — inspectdb now uses normalised field names for composite primary keys, avoiding collisions or misleading output. A companion change escapes introspection error comments so that database-generated warning messages don't break generated model code.
📚 Documentation Improvements
Several documentation commits landed this week:
cache_pagebehaviour — Refs #15855: Documented thatcache_pagecaches the response before response middleware runs.- CSRF processor always enabled — Fixed #37032: The CSRF context processor reference now states explicitly that it is always enabled.
- InlineModelAdmin features — Fixed #36925: Listed further shared features available for
InlineModelAdmin. - Email docs fixes — Typo and
versionaddedlocations corrected in the email documentation. - General docs cleanup — Fixed minor typos and grammatical errors across 61 files.
🧪 Testing & CI
- Flaky tests — Refs #32539: A flaky admin-facet-filter test was fixed by ensuring
UserAdminis registered with the default admin site. - Translation catalogs — Updated source translation catalogs (forwardport from
stable/6.1.x).
🧹 Project Housekeeping
- Django 6.1 EOS dates — Added expected end-of-support dates for the 6.1 release.
- Contributing docs — Python 2 references removed; version references updated to 6.2.
- Validator messages — Subject/verb agreement fixed in
DecimalValidatormessages. - PR quality check wording — Improved messaging in automated PR quality‑check responses.
Next issue: August 3, 2026 — covering commits from July 27 through August 2.