#24264: foreign key constraint error migrating integer pk to CharField -------------------------------------+------------------------------------- Reporter: timgraham | Owner: MarkusH 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:"b29f3b51204d53c1c8745966476543d068c173a2"]: {{{ #!CommitTicketReference repository="" revision="b29f3b51204d53c1c8745966476543d068c173a2" Fixed #24225, #24264, #24282 -- Rewrote model reloading in migration project state Instead of naively reloading only directly related models (FK, O2O, M2M relationship) the project state needs to reload their relations as well as the model changes as well. Furthermore inheriting models (and super models) need to be reloaded in order to keep inherited fields in sync. To prevent endless recursive calls an iterative approach is taken. }}} -- Ticket URL: <https://code.djangoproject.com/ticket/24264#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 django-updates+unsubscr...@googlegroups.com. To post to this group, send email to django-updates@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/django-updates/067.885e0d2c3cc0538338a02f918a3a7ee5%40djangoproject.com. For more options, visit https://groups.google.com/d/optout.