#24291: Migrations fail with unused swappable model
-------------------------------------+-------------------------------------
Reporter: knbk | Owner: knbk
Type: Bug | Status: closed
Component: Migrations | Version: 1.8alpha1
Severity: Release blocker | Resolution: fixed
Keywords: | Triage Stage: Ready for
| checkin
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Markus Holtermann <info@…>):
* status: assigned => closed
* resolution: => fixed
Comment:
In [changeset:"15dc8d1c9d3697170a2c59ecaa7a2b4ba58f5990"]:
{{{
#!CommitTicketReference repository=""
revision="15dc8d1c9d3697170a2c59ecaa7a2b4ba58f5990"
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.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/24291#comment:9>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/062.bd7b7128110ee17b6dc42e81d84717b1%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.