Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- for u in User.objects.all():
- print ([g.name for g in u.groups.all()])
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement