Skip to content

Create a sub table row from existing parent. #296

@obayemi

Description

@obayemi

Hello,

Would it be possible to extend an already saved polymorphic model?

class A(PolymorphicModel)
    pass

class B(A):
    pass

would it be possible to turn an instance of A to an instance of B ?
like some sort of B(A=A()).
(I guess it would be technically possible since inheritance only store a pointer to the base class?)

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions