Answer the question
In order to leave comments, you need to log in
How to get access to model B which is inherited from A?
There is a model A:
class ModelA(models.Model):
name = models.CharField()
class ModelB(ModelA):
age = models.IntegerField()
age = ModelA.objects.get(id=1).age
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question