Changes between Version 1 and Version 2 of Ticket #26488, comment 3


Ignore:
Timestamp:
May 10, 2016, 7:16:05 AM (9 years ago)
Author:
Simon Philips

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #26488, comment 3

    v1 v2  
    1111        for (app, model_name), model in state.models.items():
    1212            if full_old_name in model.bases:
    13                 model.bases = tuple(full_new_name if base == full_old_name else base
    14                                     for base in model.bases)
     13                model.bases = tuple(full_new_name if b == full_old_name else b
     14                                    for b in model.bases)
    1515
    1616        super().state_forwards(app_label, state)
Back to Top