Re: Model inheritance problem, inherited instances

2009-07-22 Thread Peter Cicman
e). The first one is the > instance of A associated with b, and the second the id of that > instance of A. So, I imagine that: > b = B() > b.a_ptr = a > b.save() > > or > > b = B() > b.a_ptr_id = a_id > b.save() > > should do what you want. > > Rodrigu

Model inheritance problem, inherited instances

2009-07-20 Thread Peter Cicman
Hi, i didn't found noting about it in docs, so i'll try to ask, first explanation, i have: class A(models.Model): name = models.CharFiled(, required=True) . class B(A): I have an existing instance of A, say `a` and i "want to make" instance of b out of it. i'm lookin