On Sep 3, 5:14 pm, Javier Guerra Giraldez <jav...@guerrag.com> wrote:
> On Fri, Sep 3, 2010 at 11:10 AM, Bradley Hintze
>
> <bradle...@aggiemail.usu.edu> wrote:
> > -In my template I put {{ param1.0 }}, expecting to see the first list
> > in the list of lists.
> > Result: nothing was printed to the page.
>
> that zero becomes a string '0', not a numeric 0.  IOW, it's not
> param[0], it's (among other things) param['0'], clearly not what you
> want.

Not true. 0 is evaluated literally. {{ param1.0 }} should work, and I
have used this form many times. There's possibly something else going
wrong with the OP's template - Bradley, are you sure that the first
list wasn't output at all?
--
DR.

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@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.

Reply via email to