#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
-------------------------------------+-------------------------------------

Comment (by Markus Holtermann <info@…>):

 In [changeset:"84c9b24c5afba524c8dcb4bb5f7c40c43291d132"]:
 {{{
 #!CommitTicketReference repository=""
 revision="84c9b24c5afba524c8dcb4bb5f7c40c43291d132"
 [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 15dc8d1c9d3697170a2c59ecaa7a2b4ba58f5990 from master
 }}}

--
Ticket URL: <https://code.djangoproject.com/ticket/24291#comment:10>
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.a685fbfd2a4ea88d8112164b16cadcd2%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to