Repository navigation
Django Evolution 2.4: Field Type Renames
Django Evolution 2.4 adds a new feature to help when moving away from legacy Django model field types.
Field Type Module Updates
We've added a new setting to help when moving from a field type in an old module path to a new one, whether that field type has simply been moved or is completely gone and replaced with a compatible one.
This is done by setting DJANGO_EVOLUTION['RENAMED_FIELD_TYPES'] in settings.py to a a dictionary mapping old field module paths to the new ones. Any time the old path is referenced in any evolution or stored signature data, the new path will be used instead.
For example:
DJANGO_EVOLUTION = {
'RENAMED_FIELD_TYPES': {
'myproject.MyField': 'myproject.fields.MyField',
},
}Installation
$ pip install django-evolution==2.4