Skip to content

Django Evolution 2.4: Field Type Renames

Choose a tag to compare

@chipx86 chipx86 released this 30 May 09:03
· 73 commits to master since this release

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

Learn More