[Answered ]-How to get queryset of objects in many to many field in Django

1👍

Work with:

Classroom.objects.filter(
    student__user=request.user
)

This will retrieve all Classrooms for which a related Student has as user the request.user.

Leave a comment