Migrate existing third-party Django model to new customized model -
i'm using django-filer file handling. has abstract model baseimage , there default model images called image inherits baseimage , not abstract.
also, package allows specify custom model images: hooks import of image model, checks filer_image_model setting , return custom model if it's specified instead of image. here code
so, customizing easy -- inherited model customimage baseimage , specified necessary setting -- works fine. here comes trouble: how migrate existing data old models new ones?
you need run data migration details of depend on models.
Comments
Post a Comment