2👍
What you want to do is a data migration.
- Keep the existing
jsonfield
and add the newPostreSQL JSONField
. - Generate a data migration, which iterates through each record migrating the data from the old field to the new one.
- Once you’ve run the migration you can deprecate the old field and remove it without any data loss.
References
0👍
yes you can change fields’ types and names without loosing the data.
You just need to run makemigrations
and migrate
every time you change something`in your models.py
- [Answered ]-Django admin page adding save as pdf button
- [Answered ]-Create a APP named admin in my project whether will get unknown conflict?
Source:stackexchange.com