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

Popular posts from this blog

How has firefox/gecko HTML+CSS rendering changed in version 38? -

javascript - Complex json ng-repeat -

jquery - Cloning of rows and columns from the old table into the new with colSpan and rowSpan -