You'll have to give some more information and put some more effort in
describing you problem for people to help you out Kevin.
Cheers,
Bert
On Sep 20, 8:43 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote:
> this is question of how list one element of a queryset in template.
>
> can somebody help me, thanks!
>
> On 9月20日, 下午2时04分, "[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!
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to [email protected]
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
-~----------~----~----~----~------~----~------~--~---