Added Reddit Accounts to the User endpoint

This commit is contained in:
2011-06-01 09:43:04 +01:00
parent d141d0ac07
commit e485f2d096

View File

@@ -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