RepoJournal
Django

@django

Python's batteries-included web framework

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

One email a day. Unsubscribe in one click.

Pick a date

Topics: Python Full archive →

The Wire · Showcase

DJANGO FIXES MIGRATION CRASH THAT BREAKS UNIQUE CONSTRAINTS

By RepoJournal · Filed · About Django

A critical bug in Django's migration system is now patched: CreateModel with unique_together no longer crashes when followed by AlterUniqueTogether in the same migration.

The fix [1] resolves a crash that occurred when migrations contained both operations in sequence. Django was attempting to remove a unique constraint that existed only in deferred SQL, causing the alter operation to fail. This is the kind of silent killer that ships to production undetected until you run a specific migration sequence. In parallel, the docs got a significant boost with new guidance on test performance [2]. The team added explicit documentation showing how setUpTestData dramatically speeds up test suites by reusing data across tests, with revised examples that actually demonstrate the isolation mechanics. Secondary fixes landed on password hashing anchor links [3] and the steering council published June meeting notes [4]. ASV benchmarks also updated with ubuntu-latest results [5], keeping the performance baseline current.

One email a day. Unsubscribe in one click.

Action items

References

  1. [1] Fixed #31317 -- Avoided crash in CreateModel with unique_together and AlterUniqueTogether. ↗ django/django
  2. [2] Fixed #37128 -- Doc'd setUpTestData as test speed up. django/django
  3. [3] Fixed password hashing anchor link for references. django/django
  4. [4] Add 2026-06-15 meeting notes django/steering-council
  5. [5] Results for ubuntu-latest added [skip ci] django/django-asv

Quick answers

What shipped in Django on June 16, 2026?
A critical bug in Django's migration system is now patched: CreateModel with unique_together no longer crashes when followed by AlterUniqueTogether in the same migration. In total, 5 commits and 2 pull requests landed.
Who contributed to Django on June 16, 2026?
1 developer shipped this update, including David-Wobrock.
What were the notable Django updates?
Fixed #31317 -- Avoided crash in CreateModel with unique_together and AlterUniqueTogether, Fixed #37128 -- Doc'd setUpTestData as test speed up, and Fixed password hashing anchor link for references.

More from @django

Daily updates, in your inbox

Follow Django

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

or

One email a day. Unsubscribe in one click. Read a past issue →

Elsewhere on the wire

Want every project, not just this one?

We use privacy-friendly analytics (Google Analytics, IP-anonymized) to see which pages help readers. No ads, and we never sell your data. See our Privacy Policy.