126 wires and counting

$ follow Django

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

or

fair warning: these emails are deeply technical. diffs, version numbers, CVEs, benchmark deltas. if that's not your idea of a good read, this isn't your newsletter.

Folds into your digest — weekly by default, monthly if you prefer. Unsubscribe in one click.

$ status

wire 2026-05-19
stories 7

© 2026 RepoJournal Home Showcase Explore How it works Privacy

$ the-wire · showcase

DJANGO PATCHES CRITICAL QUERY ORDERING BUG AFFECTING UNIONS

By RepoJournal · Filed · About Django · Composed from the cited sources · methodology

Django fixed a regression in combined queries that broke ordering on union, intersection, and difference operations, potentially causing incorrect result sets in production.

The fix [1] addresses ticket #37097, a regression introduced in commit 087bb9e8f that drove traffic into an existing error path. When using union(), intersect(), or difference() operations with explicit order_by() calls, Django was failing to properly clear ordering on the inner combined queries, leading to unexpected result behavior. The team also removed redundant compilation-time order clearing on Oracle [2], which was handling the same issue inefficiently. In parallel, Django shipped a security-focused update [3] adding CSP nonce support to error pages, admin templates, and registration forms. All explicit script, link, and style elements in these templates now use the {% csp_nonce %} tag when available, hardening Django's default templates against inline script injection attacks.

Quick answers

What shipped in Django on May 19, 2026?
Django fixed a regression in combined queries that broke ordering on union, intersection, and difference operations, potentially causing incorrect result sets in production. In total, 5 commits and 2 pull requests landed.
Who contributed to Django on May 19, 2026?
2 developers shipped this update, including jacobtylerwalls and codingjoe.
What were the notable Django updates?
Fixed #37097 -- Made Query.clear_ordering() clear ordering on combined queries also, Refs #37097 -- Removed compilation-time order clearing on combined queries on Oracle, and Fixed #36825 -- Included CSP nonce in templates if available.