> > Not sure if I'm following you 100%, but i think you can filter like this: > > return qs.filter(classi__prof=request.user) > > This would match the MAC to a class, and the class to a professor, and the > professor to request.user. Should return all of the MAC's that belong to a > class that request.user is a professor for, I believe. > > I was thinking on this, you might have to use qs.filter(classi__prof__prof=request.user) instead.
-James -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CA%2Be%2BciU5sVtPGvJsi66xBPxwow_ctQ3P-vrGkgm-JoEPNTQJYg%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.

