[Answered ]-Nested Django query

2👍

You can use something like this:

Substitute.objects.filter(teacher__user=user.pk)

Leave a comment