On Mon, Sep 29, 2008 at 2:02 AM, jim <[EMAIL PROTECTED]> wrote:
> This gives me an error:
> Cannot resolve keyword 'user' into field. Choices are: xxx, yyy, zzz
>
> Any ideas as to what may be causing this?

Your profile model must have a ForeignKey or a OneToOneField pointing
to User, and the name of that field must be 'user'.

This is because, under the hood, "request.user.get_profile()" is
actually "YourProfileModel.objects.get(user=request.user)"; if your
profile model has no field named "user", you'll get the error message
above.


-- 
"Bureaucrat Conrad, you are technically correct -- the best kind of correct."

--~--~---------~--~----~------------~-------~--~----~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to