> 24 {% for entry in entries %}
^^^^^^^^^^^^^^^^^^^
> 25 <li><a href="{{ entry.link }}" >{{ entry.title }}</a>
> {{ entry.posted }} {{ entry.submitter }}</li>
> 26 {% endfor %}
Compare and contrast what you are doing with 'entries' in that for
loop and what the docs do with the equivalent object in the linked
example, 'contacts'.
This is the part of the docs I linked you to:
{% for contact in contacts.object_list %}
{# Each "contact" is a Contact model object. #}
{{ contact.full_name|upper }}<br />
...
{% endfor %}
Any clearer?
Cheers
Tom
--
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 django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
No comments:
Post a Comment