If you have a Poll object as per the tutorial which has a get_choices()
method, and your view passes it to the template as 'p', you can simply
do:

{{ p.get_choices }}

in the template, or perhaps more usefully something like this:

{% for c in p.get_choices %}
Choice is {{c}}.
{% endfor %}

It's the equivalent of p.get_choices() in the view.  I don't think
there's a way to pass it any parameters, but it might be bad design to
start putting that much code into a template anyway.

Reply via email to