mirror of
https://github.com/nikdoof/test-auth.git
synced 2025-12-18 12:19:29 +00:00
Added Reddit Accounts to the User endpoint
This commit is contained in:
@@ -52,7 +52,7 @@ class UserHandler(BaseHandler):
|
||||
|
||||
d = {'id': u.id, 'username': u.username, 'email': u.email,
|
||||
'serviceaccounts': u.serviceaccount_set.all(), 'characters': chars,
|
||||
'groups': u.groups.all(), 'staff': u.is_staff, 'superuser': u.is_superuser}
|
||||
'groups': u.groups.all(), 'staff': u.is_staff, 'superuser': u.is_superuser, 'redditaccounts': u.redditaccount_set.filter(validated=True) }
|
||||
|
||||
return d
|
||||
|
||||
|
||||
Reference in New Issue
Block a user