- Django 2 Web Development Cookbook
- Jake Kronika Aidas Bendoraitis
- 42字
- 2021-06-10 19:31:39
Changing a foreign key to the many-to-many field
This recipe is a practical example of how to change a many-to-one relation to a many-to-many relation, while preserving the already existing data. We will use both schema and data migrations in this situation.