mirror of
https://github.com/django/django.git
synced 2025-10-31 09:41:08 +00:00
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 15dc8d1c9d from master
33 KiB
33 KiB