Hi,
I was just curious if anyone could give me tips on how to migrate an
FK to M2M whist retaining the FK selected data?
Long story short, I've played around with adding adding a M2M field
with a `related_name`, migrating, deleting FK, then re-naming the M2M
and removing `related_name`, but I eventually lose the data towards
the end of the hoop jumping. I think I need to get my hands dirty and
modify the schema migrations.
I've found a few (older) posts detailing the steps using South (for
example, [1]), but I'm using Django's built-in migration tools …
Questions:
Should South tutorials directly relate to Django's schema migrations?
Anyone out there have a step-by-step for Django 1.7.x (using native
schema migrations) that I could follow? :)
Thanks in advance!
Cheers,
M
[1] <
http://blog.klymyshyn.com/2010/12/django-model-migrations-with-south-how.html>