mirror of
https://github.com/django/django.git
synced 2025-10-31 09:41:08 +00:00
[5.1.x] Fixed #34856 -- Fixed references to index_together in historical migrations.
While AlterUniqueTogether has been documented to be still allowed in historical migrations for the foreseeable future it has been crashing since2abf417c81was merged because the latter removed support for Meta.index_together which the migration framework uses to render models to perform schema changes. CreateModel(options["unique_together"]) was also affected. Refs #27236. Co-authored-by: Simon Charette <charette.s@gmail.com> Backport ofb44efdfe54from main.
This commit is contained in:
committed by
Sarah Boyce
parent
85c3550106
commit
2ee6ca6d35
@@ -9,4 +9,5 @@ Django 5.1.5 fixes several bugs in 5.1.4.
|
||||
Bugfixes
|
||||
========
|
||||
|
||||
* ...
|
||||
* Fixed a crash when applying migrations with references to the removed
|
||||
``Meta.index_together`` option (:ticket:`34856`).
|
||||
|
||||
Reference in New Issue
Block a user