RepoJournal
Django

@django

Python's batteries-included web framework

Keep up with Django in about 3 minutes a day: what actually shipped — the commits, pull requests, releases, and security advisories that matter.

One email a day. Unsubscribe in one click.

Pick a date

Topics: Python Full archive →

The Wire · Showcase

DJANGO TIGHTENS CSP SECURITY CHECKS AND FIXES MIGRATION EDGE CASES

By RepoJournal · Filed · About Django

Django added automatic system checks to catch misconfigured Content Security Policy middleware, while patching a critical migration bug that broke AlterField propagation through relation chains.

The framework shipped a new security system check [1] that warns developers when ContentSecurityPolicyMiddleware is enabled with CSP nonce support but the required context processor isn't configured—a footgun that would silently break template rendering in production. Alongside that, the ORM landed a fix [2] for AlterField migrations that failed to propagate type changes when relations used `to_field` with attribute name aliases instead of explicit field names, a subtle trap for complex model inheritance. Form media handling got smarter [3] with support for object-based stylesheet assets, letting you define media dependencies without string manipulation. On the security desk, a system check for deploy-time validation [4] was moved out of the deploy checks list after being misclassified. The docs team cleaned up security release checklists [5] with better code formatting for future disclosure posts [6], and added validation to the CVE year field [7] to ensure consistency with sorting. If you're using CSP nonces or complex migration chains, these fixes matter. If you're shipping form media objects soon, this is your green light.

One email a day. Unsubscribe in one click.

Action items

References

  1. [1] Fixed #37084 -- Added CSP nonce context processor system check. ↗ django/django
  2. [2] Fixed #37060 -- Propagated AlterField through attname-based to_field … ↗ django/django
  3. [3] Fixed #37085 -- Added support for object-based form media stylesheet assets. ↗ django/django
  4. [4] Refs #15727 -- Moved security.E026 out of list of deploy=True checks. django/django
  5. [5] [checklists] Minor improvements following recent security release ↗ django/djangoproject.com
  6. [6] [checklists] Minor corrections to security checklist bullets. django/djangoproject.com
  7. [7] [checklists] Added RegexValidator to cve_year_number to ensure created issues are compatible with cve_sort_key. django/djangoproject.com

Quick answers

What shipped in Django on May 8, 2026?
Django added automatic system checks to catch misconfigured Content Security Policy middleware, while patching a critical migration bug that broke AlterField propagation through relation chains. In total, 8 commits and 5 pull requests landed.
Who contributed to Django on May 8, 2026?
4 developers shipped this update, including MiladZarour, sipa-echo-zaoa, nessita, and sarahboyce.
What were the notable Django updates?
Fixed #37084 -- Added CSP nonce context processor system check, Fixed #37060 -- Propagated AlterField through attname-based to_field …, and Fixed #37085 -- Added support for object-based form media stylesheet assets.

More from @django

Daily updates, in your inbox

Follow Django

Keep up with Django in about 3 minutes a day: what actually shipped — the commits, pull requests, releases, and security advisories that matter.

or

One email a day. Unsubscribe in one click. Read a past issue →

Elsewhere on the wire

Want every project, not just this one?