diff options
author | Leif Johansson <leifj@sunet.se> | 2011-08-18 10:41:41 +0200 |
---|---|---|
committer | Leif Johansson <leifj@sunet.se> | 2011-08-18 10:41:41 +0200 |
commit | 8b62502983ca646104f22ecb56cf97ff8922756a (patch) | |
tree | 6dea14dea1b13a8fdb919d9ada7f10a816876131 /coip/apps/opensocial | |
parent | 9d4561febd0489eb8cab1fc3654614b1a5ed17ac (diff) |
new profile-model
Diffstat (limited to 'coip/apps/opensocial')
-rw-r--r-- | coip/apps/opensocial/people.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/coip/apps/opensocial/people.py b/coip/apps/opensocial/people.py index 4572829..9465c08 100644 --- a/coip/apps/opensocial/people.py +++ b/coip/apps/opensocial/people.py @@ -4,7 +4,6 @@ Created on Jun 19, 2011 @author: leifj ''' from tastypie.resources import ModelResource -from coip.apps.userprofile.models import UserProfile, last_used_profile from django.contrib.auth.models import User from coip.apps.opensocial.serializer import OpenSocialSerializer from django.conf.urls.defaults import url @@ -158,7 +157,7 @@ class PersonResource(OpenSocialResource): def dehydrate(self,bundle): bundle = super(PersonResource,self).dehydrate(bundle) bundle.data['id'] = bundle.data['username'] - bundle.data['displayName'] = last_used_profile(bundle.obj).display_name + bundle.data['displayName'] = bundle.obj.get_profile().display_name del bundle.data['resource_uri'] del bundle.data['username'] return bundle
\ No newline at end of file |