It works, yay!!!!

Thanks heaps

On May 5, 5:12 am, "James Bennett" <[EMAIL PROTECTED]> wrote:
> On 5/4/07, *San* <[EMAIL PROTECTED]> wrote:
>
> > but, when I tried to view it, I got an error:
> >  Cannot resolve keyword 'user' into field
>
> The field on your profile model **must** be named "user".
>
> So, for example, this will work:
>
> class MyProfile(models.Model):
>     mailing_address = models.TextField()
>     user = models.ForeignKey(User, unique=True)
>
> But this will not, because the relation back to the User model is not
> a field named "user":
>
> class MyProfile(models.Model):
>     mailing_address = models.TextField()
>     django_user_account = models.ForeignKey(User, unique=True)
>
> --
> "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