8
Say teacher
is a teacher’s uuid/primary key then following look-up should work for you
Student.objects.filter(course__teacher=teacher)
Source:stackexchange.com
8
Say teacher
is a teacher’s uuid/primary key then following look-up should work for you
Student.objects.filter(course__teacher=teacher)