I have a model that has a FK to django.contrib.auth.models Group. I
run a query that gets all the groups that a user is a member of:

groups = Group.objects.filter(user=request.user)

Then I want to run a query for that model that gets and entries in
that model where the group FK is one of the groups in the groups
query. So like:

course = Course.objects.filter(group=groups)

How can I do this?
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to