Re: Remove/undo a multi table inheritance

2017-11-02 Thread 'Tom Evans' via Django users
Does it work if you do it in several stages (each one is a separate migration action): * Add the OneToOneField, make it nullable, still using MTI * Add a python migration that populates it from the existing MTI information * Remove the MTI * Make the 1-2-1 field as you like it (remove null=True

Remove/undo a multi table inheritance

2017-11-02 Thread yves . mueller
Hi, I have introduced a multi table inheritance in the past. Now I am trying to remove it again by adding an explicit one-to-one relation from the child table to the parent. So my starting point is: from django.db import models class Place(models.Model): name =