#33366: Migration autodetector doesn't handle placeholders in related_name for
ForeignKey.
-------------------------------------+-------------------------------------
     Reporter:  Andrew Chen Wang     |                    Owner:  Simon
                                     |  Charette
         Type:  Bug                  |                   Status:  closed
    Component:  Database layer       |                  Version:  4.0
  (models, ORM)                      |
     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 Mariusz Felisiak <felisiak.mariusz@…>):

 * status:  assigned => closed
 * resolution:   => fixed


Comment:

 In [changeset:"43289707809c814a70f0db38ca4f82f35f43dbfd" 4328970]:
 {{{
 #!CommitTicketReference repository=""
 revision="43289707809c814a70f0db38ca4f82f35f43dbfd"
 Fixed #33366 -- Fixed case handling with swappable setting detection in
 migrations autodetector.

 The migration framework uniquely identifies models by case insensitive
 labels composed of their app label and model names and so does the app
 registry in most of its methods (e.g. AppConfig.get_model) but it
 wasn't the case for get_swappable_settings_name() until this change.

 This likely slipped under the radar for so long and only regressed in
 b9df2b74b98b4d63933e8061d3cfc1f6f39eb747 because prior to the changes
 related to the usage of model states instead of rendered models in the
 auto-detector the exact value settings value was never going through a
 case folding hoop.

 Thanks Andrew Chen Wang for the report and Keryn Knight for the
 investigation.
 }}}

-- 
Ticket URL: <https://code.djangoproject.com/ticket/33366#comment:13>
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/074.2ff39b472b502d277f8ae384e5d4bd6f%40djangoproject.com.

Reply via email to