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 et
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 = models.CharField(max_length=50
2 matches
Mail list logo