I have two models that inherit from the same abstract base class.
I expect that I can get all instances from classes that are children of the base class, with something like AbstractClass.objects.all ()
Of course, I could join inquiries for all children, but it is terrible, and it ceases to work if I add a new class for children.
Is this possible with Django ORM? What will be the elegant solution?
source
share