2010/3/3 jimgardener <jimgarde...@gmail.com>

> what exactly does object_status.0 mean?  I got an error when I tried
> it in python shell
> jim
>
> On Mar 3, 1:10 pm, Alessandro Pasotti <apaso...@gmail.com> wrote:
> > 2010/3/3 harryos <oswald.ha...@gmail.com>
>
> >
> >  {%if not  object_status.0 %}
> >
> >
>
> --
>


Templates are not pure python, object_status.0 is equivalente to python's
object_status[0], returns the value of the first element of the list.

If it is None it will evaluate to boolean false, I'm not sure about blanks
and zeroes though.


It's in the docs  but I cannot recall where exactly.


-- 
Alessandro Pasotti
w3:   www.itopen.it

-- 
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