I have a m2m relationship between users (guardians) and students. I want to check if the currently logged in user has permission to edit a particular student.
parents = students.parents.all() And then check if logged in user.id matches against any of the parent ids. Is there a query set method for this? If not, what would the Python look like? (Learning Python as I learn Django.) Thanks! --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---

