andy baxter wrote:
> Alex Koshelev wrote:
>
>> I usually make link to User model not profile. And have no problems
>> with usage.
>>
>>
>>
> I just tried switching to this way of doing it, and have come up against
> a problem with getting the profile data into the template. If I create a
> list of all users in the view, then pass the list of users to the
> template as user_list, I would like to be able to iterate over the list
> using '{% for user in user_list %}', and then retrieve the data from the
> profile inside the template. I tried doing {{
> user.get_profile.self_description }}, which is meant to retrieve the
> self_description field from the Member object associated with the given
> User. But this raises a template error: 'Too many values to unpack'
>
> Is it possible to refer to profile data in the template like this, or do
> I need to find another way to do it?
>
>
Sorry, forget that - I just had AUTH_PROFILE_MODULE set wrong. Now it's
working OK.
andy.
--~--~---------~--~----~------------~-------~--~----~
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?hl=en
-~----------~----~----~----~------~----~------~--~---