Changes between Version 2 and Version 3 of Ticket #31416, comment 7


Ignore:
Timestamp:
Apr 12, 2020, 9:51:28 PM (4 years ago)
Author:
Nan Liu

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #31416, comment 7

    v2 v3  
    44> I think the best approach would be to adjust `check_dependency` to account for this case.
    55
    6 I am not able to figure out how adjusting `check_dependency`, could help
    7  solve this issue. Assuming that I loop through all fields present in the
    8  base model, check if they're present in the inherited model, and if there
    9  are any such fields present, append `base_app_label, base_name,
    10  field_name, False` to `dependencies`, how would adjusting
    11  `check_dependency` able to reorder the migrations?
     6I am not able to figure out how adjusting `check_dependency`, could help solve this issue. Assuming that I loop through all fields present in the base model, check if they're present in the inherited model, and if there are any such fields present, append `base_app_label, base_name, field_name, False` to `dependencies`, how would adjusting `check_dependency` able to reorder the migrations?
    127
    138Thanks
Back to Top