Thursday, January 27, 2011

Re: object has no attribute

On Thu, Jan 27, 2011 at 2:01 PM, Pacem <metapacem@gmail.com> wrote:
>
> i can fin "brukersnarvei" in the attributes, so what am i missing?
>
> the error message:
> Brukersnarvei matching query does not exist.
>

This means that there is no entry in the Brukersnarvei table with that
user_id. If you want to automatically create one of these when you are
creating a user, you need to use a signal, see [1] for an example of
how to automatically create a UserProfile.

Cheers

Tom

[1] http://stackoverflow.com/questions/44109/extending-the-user-model-with-custom-fields-in-django

--
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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

No comments:

Post a Comment