1👍
✅
If 1 is the id of the sub_category you’re interested in, use
TutorInfo.objects.filter(user__course__sub_category__id__exact=1)
whether if sc
is the sub_category model instance:
TutorInfo.objects.filter(user__course__sub_category=sc)
Source:stackexchange.com