sorry, please ignore. I found it now... murphey's law, as soon as you ask a question you find the answer yourself
result_list.0 instead of result_list[0] On Jan 10, 12:56 am, rabbi <alex.averb...@gmail.com> wrote: > Using django's template language, is there a way of accessing a > specific index in a list without having to iterate over all of it? > Something like this: > <label >{{ result_list[0] }} comes before {{ result_list[1] }}</ > label> > > The example above throws a TemplateSyntaxError with "Could not parse > the remainder: '[0]' from 'result_list[0]'" > > Thanks, > Alex --~--~---------~--~----~------------~-------~--~----~ 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 django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---