django__django-15104
KeyError with migration autodetector and FK field with hardcoded reference
Verdict: the fix is stated in the issue (Tier A).
Changing del deconstruction[2]['to'] to deconstruction[2].pop('to', None) on the line indicated by the traceback makes my test suite run again, in all its glorious verbosity.
The text states the fix: “Changing del deconstruction[2]['to'] to deconstruction[2].pop('to', None) on the line indicated by the traceback makes my test suite run again, in all its glorious verbo…”
All SWE-bench Verified tasks · more django/django tasks · How the check works