On 2-7-2012 15:17, Nikhil Verma wrote:

> Traceback:-
> 
> 
> Exception Type: ValueError at /myprofile/completingprofile/
> Exception Value: Cannot assign "<django.utils.functional.SimpleLazyObject
> object at 0x3487c10>": "UserProfile.user" must be a "User" instance.
> 

>                 user = request.user,# here i am trying to add user from
> request who is coming from RegistrationForm from django -registration
>                # I am getting the error in this above line

If request.user.is_anonymous() is True you have your answer. If not,
figure out what kind of stuff is in that object by printing it's __dict__.
-- 
Melvyn Sopacua


-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to