Re: list of lists in template

2011-01-16 Thread gintare
Thanks On Jan 7, 9:27 am, Chris Matthews wrote: > {%  for Ltarp in  smth.3 %} > SHOULD BE > {%  for Ltarp in  smth.2 %} > 'cos Lans only has 3 elements and Ltarp is Lans[2]. > > Chris > > -Original Message- > From: django-users@googlegroups.com

RE: list of lists in template

2011-01-07 Thread Chris Matthews
{% for Ltarp in smth.3 %} SHOULD BE {% for Ltarp in smth.2 %} 'cos Lans only has 3 elements and Ltarp is Lans[2]. Chris -Original Message- From: django-users@googlegroups.com [mailto:django-us...@googlegroups.com] On Behalf Of gintare Sent: 07 January 2011 08:52 To: Django users

Re: list of lists in template

2011-01-06 Thread Subhranath Chunder
On Fri, Jan 7, 2011 at 12:22 PM, gintare wrote: > > in view.py > ... > Ltarp.append([item.Wordword, item.WordTranslEn, item.WordNotesGram, > item.WordConcl]) > .. > Lans.append([sen.Sent, sen.SentTransl, Ltarp ] ) > > in template.html > {% if Lans %} > > {% for smth in