Django: Composite Key Compiler Fixes and Input Hardening
Four related ORM fixes address miscounts when a composite primary key compiles to multiple columns, while separate patches harden admin date filtering and signer validation. PostgreSQL 15 support was also dropped.
Duration: PT2M26S
Episode overview
This episode is a short developer briefing from Django.
It explains recent repository work in plain language.
- Show: Django
- Published: 2026-09-20T13:05:06Z
- Audio duration: PT2M26S
Transcript excerpt
This excerpt keeps the crawler page concise. Listen to the episode or use the RSS feed for the full update.
Hello, it's Sunday, September 20th, 2026, and this is your Django developer briefing.
The lead pattern is composite primary keys breaking core query assumptions, with four linked reports tracing to the compiler treating one selection as one column.
The first theme is position and width miscounts. Because a composite key is one selection that compiles to multiple database columns, ordering, grouping, and row slicing all drifted. PR 21998 shows ordering by email after selecting the key and email generated position two instead of position three, silently…
A second part of that theme is filtered windows, or qualify queries. PR 21997 fixes dropped columns when the same foreign key was selected two ways, which left result rows one column short. PR 21999 takes the opposite approach for composite keys under window filtering, raising a not-supported error instead of…
The second theme is input validation hardening. Merged PR 21995 fixes admin date hierarchy with far-out-of-range years, such as year 9999, which escaped as a server error instead of triggering the intended invalid-parameter redirect. Open PR 22001 fixes a classic regex range typo in signer separator validation,…
Finally, merged…
Nearby episodes from Django
- Closing the Gaps in Query and Field Behavior
- Generated Field Fix Gets Walked Back and Rebuilt
- Walking Back a Risky Field Check
- Schema Migrations Get More Careful
- Better Error Messages, Clearer Exceptions
- Admin Search Fix for Inherited Models
- Weekly Recap - Security Hardening & Platform Cleanup
- Trimming the Edges — Old Databases and Old Queries