On 8/14/06, mediumgrade <[EMAIL PROTECTED]> wrote:
>
> Yes, that would be the relationship and that was actually the first
> thing I tried. The template gets passed an "array" of "entry" objects.
> Within the template, I loop through them printing the headline, portion
> of the body, and the created date. With Author's as a foreign key, I
> assumed you could do something like {{ entry.author.name }} but I get
> nothing in my output when I do this. I assume that objects passed in a
> template can't follow their foreign key relationships.
>
> Sorry, I am still very new to both Django as well as Python. Forgive me
> if I am not stating my problem clearly.
>
I suggest that you try the code in manage.py shell, and see what you
get. And i don't know the model definition of your app, and if the
Auther is comes from User Model, the 'name' should be 'username'.

-- 
I like python!
My Blog: http://www.donews.net/limodou
My Django Site: http://www.djangocn.org
NewEdit Maillist: http://groups.google.com/group/NewEdit

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