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>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAKzdcNmfMXTP4S1OYPEXFvnJE30cNhLFvZdPgv2DwHrmafrHdw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to