Plugins: How to alter migrations for moved models? #17649
-
With #16388 the ObjectChange = apps.get_model("extras", "ObjectChange") To solve this I simply edited the migration and changed |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
I believe this is fine: |
Beta Was this translation helpful? Give feedback.
I believe this is fine:
get_model()
will read the model as it's currently registered in the code base (i.e. in the "new" location) when migrations are run.