I have the following models:
class A(TranslatableModel):
translations = TranslatedFields(
name = models.CharField(max_length=30)
)
f = IntegerField()
class B(A):
def __init__(self, *args, **kwargs):
super(B, self).__init__(*args, **kwargs)
some_field = ...
Then I create an instance of B which, I believe, creates the instance of A.
b = B.objects.create(some_field='aaa', f=15)
How do I now access the object of model A which is related to the b object? Is there any way to get the PK of A from B?
b has two attibutes,
b.a_ptrandb.a_ptr_id