Hi.
I have an "expanded" user definition that wraps auth.user, like so:
...
class MetroUser(meta.Model):
user = meta.ForeignKey(User, edit_inline=meta.STACKED,
num_in_admin=1, max_num_in_admin=1)
notes = meta.TextField()
def __repr__(self):
return self.get_user().__repr__()
...
I try to access the nested auth.User information in my template like
so:
...
{% for user in object_list %}
<a href="detail/{{ user.id }}" target="main">{{ user.user.first_name
}}</a><br>
{% endfor %}
...
but it doesn't work. If I replace user.user.first_name with user.notes
it works, so it's just a problem with the nested auth.User information.
I know the nested user is there, I just can't seem to access it from
the template. Anyone able to help me out here?
Thanks
Charlie
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/django-users
-~----------~----~----~----~------~----~------~--~---