Your code looks valid as it is right now. The get_latest_polls function
should return a QuerySet of the three latest polls.

When you call this function it will get the polls and assign the
QuerySet to the "polls" variable for use in your template.

In order to display the polls, you would need to do something like
this:

{% get_latest_polls 3 %}

{% for poll in polls %}
    {{ polls.question }}
{% endfor %}


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