Revision 8569eb53

b/snf-astakos-app/astakos/im/api.py
123 123
                 'auth_token_created':user.auth_token_created.isoformat(),
124 124
                 'auth_token_expires':user.auth_token_expires.isoformat(),
125 125
                 'has_credits':user.has_credits,
126
                 'has_signed_terms':user.signed_terms()}
126
                 'has_signed_terms':user.signed_terms(),
127
                 'groups':[g.name for g in user.groups.all()]}
127 128
    response.content = json.dumps(user_info)
128 129
    response['Content-Type'] = 'application/json; charset=UTF-8'
129 130
    response['Content-Length'] = len(response.content)

Also available in: Unified diff