On Apr 11, 3:55 pm, Praveen <praveen.python.pl...@gmail.com> wrote:
> Hi all, i am really fed up and have tried number of way. Please read
> my last line which really describe where i am facing problem.
> First Attempt.
<snip>
> Problem:Data is saving for register and contact but for profile i get
> error
> ValueError
> Exception Value:
>
> Cannot assign "<django.contrib.auth.models.AnonymousUser object at
> 0x916b0cc>": "UserProfile.user" must be a "User" instance.
>
> Please look in to regview.py this line
> I am trying to get the user = form.data['title'] which is currently
> created and with that user the profile would saved.
> I will be very thankful for your suggestion

Well, it looks like request.user is an instance of AnonymousUser - ie
the current user is not logged in. So try logging in first.
--
DR.
--~--~---------~--~----~------------~-------~--~----~
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