On Sep 20, 7:04 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote:
> i have a templatetags as following:
>
> {% load bookmarks.templatetags.commrate %}
>           {% rate_for_object suburb as rate_list %}
>       {% for rate in rate_list %}
>            <BR>  rate: {{ rate.rate }}
>        {% endfor %}
> it works well for me, but i want to list the element as
> {{ rate_list[1].rate }}
> but the result is:
>
> Exception Value:        Invalid block tag: 'rate_list[1]'
>
> how can i list elements out except { %  for ...%}
>
> thanks!

{{ rate_list.1.rate }} should work.
--
DR


--~--~---------~--~----~------------~-------~--~----~
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?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to