Django: Generated Field Fix Gets Walked Back and Rebuilt

Django reverted a recently merged system check on nullable generated fields after it broke negated lookups, then followed up with a proper migration-autodetector fix for the same underlying null-handling problem. Two smaller CI and tooling safety fixes also landed.

Duration: PT2M31S

Episode overview

This episode is a short developer briefing from Django.

It explains recent repository work in plain language.

  • Show: Django
  • Published: 2026-09-18T13:05:34Z
  • Audio duration: PT2M31S

Transcript excerpt

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

This is Django, your daily developer briefing for September 18th, 2026.

Today's core story is a course correction on generated fields, and it's a good reminder that a system check meant to help developers can cause real breakage if it changes field semantics.

Back in ticket 36806, Django added a check warning against using "null" as a keyword argument on generated fields. But that fix pushed developers to strip "null equals true" from their field definitions, and it turns out that attribute does real work: negated lookups rely on it to correctly match rows where the…

Natalia's PR 21983 reverts the original check entirely, restores the release note for version 6.1.2, and keeps the warning code documented as removed rather than deleted outright, preserving history for anyone who hit it. Companion commits reinstate "null equals true" on test models and add a dedicated test for…

Right behind that, Saikat's PR 21988 tackles the deeper issue: the migration autodetector was treating null changes on generated fields as something worth an "AlterField" operation, even when null on a generated field doesn't actually change behavior the way it does on a normal field. That PR teaches the…

Same…

Nearby episodes from Django

  1. Walking Back a Risky Field Check
  2. Schema Migrations Get More Careful
  3. Better Error Messages, Clearer Exceptions
  4. Admin Search Fix for Inherited Models
  5. Weekly Recap - Security Hardening & Platform Cleanup
  6. Trimming the Edges — Old Databases and Old Queries
  7. Cookie Security Fix and a Flood of Duplicate PRs
  8. Cookie Prefix Safety Check