From 8b62502983ca646104f22ecb56cf97ff8922756a Mon Sep 17 00:00:00 2001 From: Leif Johansson Date: Thu, 18 Aug 2011 10:41:41 +0200 Subject: new profile-model --- coip/apps/opensocial/people.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'coip/apps/opensocial/people.py') 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 -- cgit v1.1