django/django · Weekly · Jun 22, 2026 - Jun 28, 2026

Django Desktop: June 22–28, 2026 — Cache Collision Fixes, Mailer Checks, and Security Hardening

Commits summarized
22
Period
Jun 22 - Jun 28, 2026
Published
Jun 29, 2026

Welcome to this week's django/django development update for June 22–28, 2026. This is a highlight report covering all 22 commits from the period. Below you’ll find changes grouped by theme — from new system checks and cache fixes to password hasher corrections and tooling polish.

🚨 New System Checks for Mailer Configuration

Two new system checks landed this week to catch misconfigured email backends early.

  • Fixed #37161 — Warn via system check when a "default" entry is missing from the MAILERS setting. (99a14b6b)

  • Fixed #37166 — Added mail.E001, a deploy-only system check that detects a dev-only (non-production) email backend configured as the "default" MAILERS entry. (61e078ec)

🧩 Cache: Collision Fixes for Fragments and Pages

Several commits addressed cache key collisions when varying on arguments or headers.

  • Fixed #37174 — Used a netstring delimiter between vary-on arguments for cached template fragments, preventing collisions when argument values contain the separator. (8acd0007)

  • Fixed #37101 — Applied the same netstring approach to vary-on headers for cached pages. (65acb3cc)

  • Doc fix (#37174) — Documented that {% cache %} tag arguments are stringified. (0383d12e)

  • Release note added for potential cache misses when varying on arguments. (02f94d2a)

  • Fixed #37191 — Prevented ValueError in FileBasedCache.touch() for expired keys. (d0580589)

🔐 Security and Password Hasher Fixes

  • Fixed #37184 — Allowed non-UTF-8 bytes passwords in both PBKDF2 and MD5 password hashers. An unnecessary force_str() call was causing UnicodeDecodeError on valid passwords. (Regression from commit 78fac1b0.) (356e5b0f)

  • Docs — Clarified "plaintext" vs. "plain-text" terminology in password hashers documentation to reduce ambiguity. (e7899141)

🛡️ XML Safety: Control Characters Blocked in Attributes

  • Fixed #37183 — SimplerXMLGenerator now rejects control characters in attribute values (not just element content). This affects syndication feeds and the XML serializer. (67c40758)

🧹 Deprecations, Warnings, and Internal Cleanup

  • Fixed #37170 — Applied the no-argument form of sensitive_post_parameters to MultiValueDict. (56050acb)

  • Refs #36593, #37187 — Prevented a spurious select_related() deprecation warning when ModelAdmin internally calls the method. (99672c67)

  • Refs #35514 — Added a migration guide link to the AdminEmailHandler deprecation note. (b3a4ce36)

  • Refs #36984 — Preserved a translator comment on a separator string. (8013cf61)

🧪 Test Improvements

  • Removed hardcoded PKs across 11 test files to reduce test brittleness. (f7cb1e1b)

  • Relaxed StringAgg assertions to account for lack of order_by. (420b4f5b)

🔧 Documentation & Tooling

  • Fixed Sphinx reference in release note. (7903ee10)

  • Removed versionchanged notices for Django 6.0. (d01aaa5b)

  • Refs #35870 — Mentioned the transitional setting in the BLANK_CHOICE_DASH release note. (9dce4561)

  • Refs #37188 — Used a more realistic --ignore example in compilemessages docs. (d5797ae5)

  • Release script fix — Reworded a line in checksum.txt so that a 40-character commit hash is no longer mistaken for a checksum entry by sha1sum --check. (93a1751f)

  • Key server update — Replaced the defunct pgp.mit.edu keyserver with GitHub for key import in release scripts. (01c3ccec)

📦 Statistics

Metric Count
Commits in period 22
Files changed ~66
Contributors 6

That’s all for this week. Thanks to all contributors — Jacob Walls, Mike Edmunds, Natalia, Tim Graham, badereddinebenhirt, ayoub, and Vishy.

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