Leaklens

django__django-16595

Migration optimizer does not reduce multiple AlterField

Verdict: the fix is stated in the issue (Tier A).

Otherwise, would it make sense to add something like if isinstance(operation, AlterField) and self.is_same_field_operation( operation ): return [operation]

The text states the fix: “Otherwise, would it make sense to add something like if isinstance(operation, AlterField) and self.is_same_field_operation( operation ): return [operation]”

All SWE-bench Verified tasks · more django/django tasks · How the check works