Django - deleting object, keeping parent?
问题 I have the following multi-table inheritance situation: from django.db import Models class Partner(models.Model): # this model contains common data for companies and persons code = models.CharField() name = models.CharField() class Person(Partner): # some person-specific data ssn = models.CharField() class Company(Partner): # some company-specific data tax_no = models.CharField() How can I convert a Company instance to a Person one, and vice-versa? Let's say someone mistakenly created a