I have defined the parent class of Person
, and a subclass of Father
as following:
class Person(models.NodeModel):
first_name = models.StringProperty()
middle_name = models.StringProperty()
last_name = models.StringProperty()
class Father (Person)
Profession = models.StringProperty()
After creating a number of Father
s, I can easily get all of them by Father.objects.all()
. However, by running the code Person.objects.all()
nothing is found (i.e. []
)!
As far as I know the last query should return objects as well! Is there any solution?