Leaklens

django__django-11815

Migrations uses value of enum object instead of its name.

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

It should be: ('status', models.CharField(default=Status['GOOD'], max_length=128))

The text states the fix: “It should be: ('status', models.CharField(default=Status['GOOD'], max_length=128))”

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