Django: Primary Key Fixes and Translation Safety

Two merged fixes tighten ORM reliability around deferred fields and primary key changes, while open proposals target composite key ordering, translation escaping, and admin polish.

Duration: PT2M21S

Episode overview

This episode is a short developer briefing from Django.

It explains recent repository work in plain language.

  • Show: Django
  • Published: 2026-11-03T14:03:54Z
  • Audio duration: PT2M21S

Transcript excerpt

This excerpt keeps the crawler page concise. Listen to the episode or use the RSS feed for the full update.

Good morning, it's Tuesday, November third, 2026, and this is your Django briefing.

The signal today is correctness at the boundaries — how Django handles primary keys and deferred data in the database layer, and how it handles trusted strings in templates.

First, the data layer. Three items converge on primary keys and row fetching. Proposal 22237 fixes ordering of combined queries by a composite primary key, where ordering a union by primary key or calling first crashed, and value lists sorted by only the last key column. The fix splits a primary key ordering term…

Second, rendering trust and admin experience. Proposal 22234 adds a force escape option to the translate and block translate template tags. The problem is translations are treated as trusted and not escaped, so a quote or ampersand can break markup when rendered inside an HTML attribute, as seen with a Russian…

What's next: if you render translations inside attributes, plan to adopt the new option once available, and if you use composite keys with unions or deferred loading, test those paths against current main.

That's it for today, thanks for listening.

Nearby episodes from Django

  1. Silent Failures and Forward-Looking Prep
  2. Command Rename, Query Fixes and Session Hardening
  3. Query Reliability Fixes and Docs Polish
  4. Database Crash Fixes and Security Hardening
  5. Step Validation Precision and Cookie Deletion Fix
  6. Weekly Recap - Docs Platform Reset and Request Hardening
  7. Server Time Logging Fix
  8. 2028 Prep and Silent-Failure Fixes