django__django-15268
Optimize multiple AlterFooTogether operations into one
Verdict: the fix is stated in the issue (Tier A).
should be optimized to operations = [ migrations.AlterUniqueTogether( name='mymodel', unique_together={("col",)}, ), migrations.AlterIndexTogether( name='mymodel', index_together={("col",)}, ), ] So that we don't do two operations on each constraint, but only one.
A third check settled an earlier disagreement. The text states the fix: “should be optimized to operations = [ migrations.AlterUniqueTogether( name='mymodel', unique_together={("col",)}, ), migrations.AlterIndexTogether( name='mymod…”
All SWE-bench Verified tasks · more django/django tasks · How the check works