sorry, it is not work.
to simplify my question is how to show a list in template file as list[1].name as it does in shell mode etc. thanks! On Sep 20, 5:33 pm, Daniel Roseman <[EMAIL PROTECTED]> wrote: > 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- Hide quoted text - > > - Show quoted text - --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---