thanxs so much... that works perfect.! 2015-09-13 11:19 GMT+02:00 James Schneider <[email protected]>:
> 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 > <https://groups.google.com/d/msgid/django-users/CA%2Be%2BciU5sVtPGvJsi66xBPxwow_ctQ3P-vrGkgm-JoEPNTQJYg%40mail.gmail.com?utm_medium=email&utm_source=footer> > . > > For more options, visit https://groups.google.com/d/optout. > -- Antonio Peña Secure email with PGP 0x8B021001 available at https://pgp.mit.edu <https://pgp.mit.edu/pks/lookup?search=0x8B021001&op=index&fingerprint=on&exact=on> Fingerprint: 74E6 2974 B090 366D CE71 7BB2 6476 FA09 8B02 1001 -- 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/CALBaCdubNAiCUVMnBHqppxo8%2B2-Vz6DnyBx6KKCipxL21F99TQ%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.

