I have models that look like this:
class Property(Model):
...
class Meta:
# not abstract
class Flat(Property):
...
class House(Property):
...
Is it possible to convert already existing Property to House or Flat? I know that House or Flat additional fields are in different tables so this should be doable by creating such a row and making some relation.
How can I do that?
source https://stackoverflow.com/questions/72579406/django-multi-table-inheritance-convert-parent-to-child
Comments
Post a Comment