Changes between Version 2 and Version 3 of Ticket #29854


Ignore:
Timestamp:
Oct 17, 2018, 2:03:44 AM (6 years ago)
Author:
Rick Yang
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #29854 – Description

    v2 v3  
    8080My investigation:
    8181
    82 In function BaseDatabaseSchemaEditor._alter_field(), the function call _related_non_m2m_objects(old_field, new_field) will return inconsistent "old" and "new" related_objects pairs, and generate wrong SQL command to alter foreign keys.
     82In function BaseDatabaseSchemaEditor._alter_field(), the function call _related_non_m2m_objects(old_field, new_field) will return inconsistent "old" and "new" related_objects pairs (the model order is different), and generate wrong SQL command to alter foreign keys.
Back to Top