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. |
||
---|---|---|
.. | ||
backends | ||
migrations | ||
models | ||
__init__.py | ||
transaction.py | ||
utils.py |