On 10/27/06, Merric Mercer <[EMAIL PROTECTED]> wrote:
>
> Many thanks Don.  I figured it out, but because of issues with google
> have had problems posting back.
>
> It turns out that I don't even have to use get_profile.  Something like
> {{ user.userprofile.postcode }} works fine, where userprofile is the
> name of the one-to-one class.

The advantage though of 'get_profile' is that you don't *need* to know
the name of the OneToOne class. So if you change it to something else,
or maybe reuse the templates in a different application, you don't
need to change the templates.

Jay P.

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to