Leaklens

django__django-15525

loaddata fails on non-default database when natural keys uses foreign keys.

Verdict: the issue text repeats lines of the gold patch (Tier C).

Proposed patch in ​https://github.com/django/django/pull/15525 I used Model.from_db rather than accessing the private Model._state field, seems cleaner

3 of 3 added patch lines appear in the issue or discussion.

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