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
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
2 matches
Mail list logo