{% for x in akt|slice:"-1" %}
{{ x }}
{% endfor %}
Maybe quicker.
--
Brett Parker
--
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, s
django do not sport list[-n] index!
On Thu, Mar 10, 2011 at 11:24 PM, Szabo, Patrick (LNG-VIE) <
patrick.sz...@lexisnexis.at> wrote:
> Hi,
>
>
>
> I’m trying to acces the last index of a list in my template but list[-1]
> throws the following error:
>
>
>
> *Could not parse the remainder: '[-1]
. März 2011 16:25
An: django-users@googlegroups.com
Betreff: acces lists by index
Hi,
I'm trying to acces the last index of a list in my template but list[-1] throws
the following error:
Could not parse the remainder: '[-1]' from 'list[-1]'
How can i do it
Hi,
I'm trying to acces the last index of a list in my template but list[-1]
throws the following error:
Could not parse the remainder: '[-1]' from 'list[-1]'
How can i do it right !?
Kind regards
. . . . . . . . . . . . . . . . . . . . . . . . . .
Patrick Szabo
XSLT Develop
4 matches
Mail list logo