I've extended User by providing extra fields (a middle name, preferred nickname, etc.) in a UserInfo model with a User foreign key. I've also written methods for UserInfo for things like formalName () and informalName().
Here's the problem: How do I get to those in a template? I know there's only one UserInfo object per User object, and ideally I'd like to type something like {{ user.userinfo.formalName }} in the template, but this doesn't work because userinfo is actually userinfo_set and I'd need to get the first element of that. I don't think that's possible in the templating language, but I'd be happy to be wrong. I don't want to stick userinfo into the context if I can possibly avoid it. Do I just need to wait until one-to-one relationships work? Thanks, Todd --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---