lig / django-registration-me

DEPRECATED in favour of https://github.com/lig/regme. A user-registration application for Django (MongoEngine rework).
https://bitbucket.org/ubernostrum/django-registration/
BSD 3-Clause "New" or "Revised" License
21 stars 7 forks source link

'RegistrationProfile' object has no attribute 'ratings' #5

Open burakkilic opened 11 years ago

burakkilic commented 11 years ago

Hi again;

I am editing the issue. Sorry.

I am using User in tastypie as:

class UserResource(resources.MongoEngineResource): ratings = fields.ReferencedListField(of='lyke.api.ActivityResource', attribute='ratings', full=True)

and getting 'RegistrationProfile' object has no attribute 'ratings' error. What can I do?

lig commented 11 years ago

RegistrationProfile is a descendant of the user class. It is User object already. All instances of the RegistrationProfile class are instances of the User class already.