Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class IDM(User):
- idmclient = idm(settings.IDM_USER, settings.IDM_USER_PASS)
- groups = []
- for group in idmclient.getUser(samaccountname=super.username).get_groups():
- group = group.__dict__
- groups.append(group)
- class Meta:
- proxy = True
- ordering = ('username', )
Add Comment
Please, Sign In to add comment