Skip to content
Commit 84c9b24c authored by Marten Kenbeek's avatar Marten Kenbeek Committed by Markus Holtermann
Browse files

[1.8.x] Fixed #24291 - Fixed migration ModelState generation with unused swappable models

Swapped out models don't have a _default_manager unless they have
explicitly defined managers. ModelState.from_model() now accounts for
this case and uses an empty list for managers if no explicit managers
are defined and a model is swapped out.

Backport of 15dc8d1c from master
parent 4abadc48
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment