Re: acces lists by index

2011-03-10 Thread Brett Parker
{% 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

Re: acces lists by index

2011-03-10 Thread Amao Zhao
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]

AW: acces lists by index

2011-03-10 Thread Szabo, Patrick (LNG-VIE)
. 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

acces lists by index

2011-03-10 Thread Szabo, Patrick (LNG-VIE)
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