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
{% 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
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
3 matches
Mail list logo