class ClassA def return ClassA objects get filter class ClassB ClassA

1
2
3
4
5
6
7
8
9
class ClassA:
def x(?,y,z):
return ClassA.objects.get(y).filter(z)
class ClassB(ClassA):
pass
#ClassB.x() should return ClassB.objects.get(y).filter(z)