From e485f2d0963f04e4e9f9bc7ea730f18fcbe55437 Mon Sep 17 00:00:00 2001 From: Andrew Williams Date: Wed, 1 Jun 2011 09:43:04 +0100 Subject: [PATCH] Added Reddit Accounts to the User endpoint --- app/api/handlers/v1.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/api/handlers/v1.py b/app/api/handlers/v1.py index 3b816f4..8d31cae 100644 --- a/app/api/handlers/v1.py +++ b/app/api/handlers/v1.py @@ -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