How can I use django models to select records from auth_user_groups table ?.
For example, you can use:
querySet = User.objects.get(id=1) to retrieve the row corresponding to id=1
Is there any method like this to fetch data from auth_user_groups?
Thanks in advance.
To get all groups of a user you can do this:
to get all users of a group:
I guess this should answer your question, since there is no more information in the auth_user_groups table.