django/django · Weekly · Jul 20, 2026 - Jul 26, 2026

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:

🧪 Testing & CI

  • Flaky tests — Refs #32539: A flaky admin-facet-filter test was fixed by ensuring UserAdmin is registered with the default admin site.
  • Translation catalogs — Updated source translation catalogs (forwardport from stable/6.1.x).

🧹 Project Housekeeping

Next issue: August 3, 2026 — covering commits from July 27 through August 2.

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