. .
, through ManyToManyField. , .
$ python manage.py schemamigration --auto yourapp
-, datamigration:
$ python manage.py datamigration yourapp name_of_migration
:
for b in orm.B.objects.all():
for a in b.as.all():
orm.C.objects.create(a=a, b=b)
:
for c in orm.C.objects.all():
c.b.as.add(a)
, through ManyToManyField :
$ python manage.py schemamigration --auto yourapp