Assuming the following class structure in django:
class Base(models.Model)
class Derived(Base)
And this base object (which is just Base, not Derived)
b = Base()
b.save()
I'd like to create a derived object from b. Which would be the right way to do this? I've tried:
d = Derived(b)
d = Derived(base_ptr=b)
Thanks
NOTE: I think this is a different question than "How to go from a Model base to derived class in Django?" as what I need is to create a new derived object from an existing base (and only base) object. In that question it checks if the derived class already exists and then returns it. In my case, derived object does not exist.