Django Weekly: June 8-14, 2026
- Commits summarized
- 21
- Period
- Jun 08 - Jun 14, 2026
- Published
- Jun 15, 2026
Summary
This week's Django commits include fixes for model rendering, cache security, documentation clarity, and command-line options, alongside improvements to the djangodocs extension and test suite.
Notable Changes
Fixes
- Model Rendering: Fixed an issue with rendering empty values for models with
db_defaulton a primary key. (71af23d1f4678c4bf052e051d72e8928e1697de3) - Cache Security: Replaced substring checks on cache-control directives in
UpdateCacheMiddlewareto avoid false positives from hypothetical extension directives. (142b881cecaddc334cabec139e701c0e4b9798da) - Documentation Clarity:
- Clarified pylibmc workaround in unit test documentation. (beb40ed1d2b0503814591a37b08ecbd71f2ff729)
- Clarified database cache culling behavior in documentation. (1d714484f67777e586fbea49ec743a7e39cba50f)
- Template Archives: Used
safe_join()on downloaded template archives to prevent security issues. (46c5e76f0bcc76bfce19ad7ba07f716fc653a822) - Database Cache: Skipped DB cache deletion when culling offset is zero. (867c7c0451f2e67e715da5b55b5bf6696747fdc3)
djangodocsExtension: Made thedjangodocsSphinx extension compatible with any HTML builder, fixing missing content and improving handling of directives. Removed jQuery-dependent JavaScript and custom HTML builders. (9b1db9cb2c38c75b8fb0fc64ba5f73a6012e5b2d)sqlmigrateCrash: Fixed a crash insqlmigrateforRenameModeloperations with self-referential foreign keys by improving how schema editors handle table renames. (c6f81b383251dc9fd0918b4ba040c993444b931e)force_loginBehavior: Skipped backends not implementing(a)get_user()in(a)force_login(). (dc4e5461faa390991e6a0f6d3ca47690e8f5c4e1)- InlineModelAdmin: Made
GenericInlineModelAdmin.get_formset()useget_exclude(). (e1df3950b2a3a852dfa9eb70738b7bac28cb0a0e) CountsDictInitialization: Used**kwargsinstead of*kwargsinCountsDict.__init__(). (e8cff2921ba169d806a15de18304f431f12700f4)collectstaticFalse Positives: Reduced false positives in strings duringcollectstatic. (f1440a752ec034277ccdad914995c3f164308e41)
Improvements
- File Prefixes: Moved
django_file_prefixes()todjango.utils.warnings. (f970a98e464320c09dde8d45009eadfb4d038a57) sendtestemailCommand: Added--usingoption tosendtestemailcommand. (14c66825e0088b7e08fe5d108fa293bd31722c39)Media.__add__: ReturnedNotImplementedinMedia.__add__for non-Media RHS. (a2f8a4a6f9ac094edde937e56a3ecbd112ee448c)
Testing & CI
- Commit Suffix Job: Made check-commit-suffix job check only relevant commits. (bfb8679bd95e9387b848ef856e8eb6f1a4a4bac5)
- Signals Tests: Fixed flaky receiver count assertion in signals tests. (15bcbeeb95ca34385c119acea14df1f5e7274d45)
Documentation
VersionDirectiveRemoval: Removed obsolete Sphinx < 1.8 fallback inVersionDirectivefrom djangodocs extension. (17a56cd6e600cfb02972657e8958b5ee2e0f936e)make.batSync: Synced docs/make.bat with docs/Makefile. (bc65586cfb69c0c0c399e40a22494501e0da2008)get_exclude()Doc: Documentedget_exclude()in base features shared byInlineModelAdmin. (09efda004551319d2956e20020dc0e42e40f151a)- Release Security Standards: Documented security standards in
howto-release-django.txt. (443780780bbe88822f0af4b27517d7e8f080a6a2)