Re: UserProfile.user" must be a "User" instance. django-registration

2014-06-10 Thread Jimish Parekh
Hey Nikhil, I might be wrong but please check your UserProfile model - In your __Unicode(something) function check for syntax error. i think it should be __Unicode__ - And why are you trying to return full name of User. I think you should return self.user there so that when you are r

Re: UserProfile.user" must be a "User" instance. django-registration

2014-06-09 Thread 曾阿牛
I have the same problem. Nikhil Verma於 2012年7月2日星期一UTC+8下午9時17分03秒寫道: > > HI All > > I am applying an django-registration in my app. So i create a UserProfile > Model and a ModelForm after clicking on the email link > the user is redirected to the ModelForm page of UserProfile. I am filling > t

Re: UserProfile.user" must be a "User" instance. django-registration

2012-07-04 Thread Melvyn Sopacua
On 2-7-2012 15:17, Nikhil Verma wrote: > Traceback:- > > > Exception Type: ValueError at /myprofile/completingprofile/ > Exception Value: Cannot assign " object at 0x3487c10>": "UserProfile.user" must be a "User" instance. > > user = request.user,# here i am trying to add user

Re: UserProfile.user" must be a "User" instance. django-registration

2012-07-02 Thread megaBos
it seems fine, don't know why it shouldn't work, a different approach would be to overide the models save method and add the user there. On Monday, July 2, 2012 4:17:03 PM UTC+3, Nikhil Verma wrote: > > HI All > > I am applying an django-registration in my app. So i create a UserProfile > Model