Hi,
I have two separate groups, for example, test1, and test2. I want to get a
user that is a member of group test1 and group test2.

I've try User.objects.filter(groups__name='test1') to get users of  group
test1. not sure how to check if a user belongs to group test1 and is also
belong to group test2

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAPCf-y6F2rbgG1%3DgK4QX8FDKDq61b8mVdvtrtv5LwQQmfwhY3g%40mail.gmail.com.

Reply via email to