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
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
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
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
4 matches
Mail list logo