2010/3/3 harryos <oswald.ha...@gmail.com> > > I would try with > > > > {%if not object_status.0 %} > > > > > hi > thanks.That was quite new to me..can you tell me how that works? > > I also tried > {% if not objects_status.items|length_is:"0" %} > >
Oops sorry, I just realize now that your dictionary has booleans as values, so my method will probably fail. I use it to test if a dictionary has at least a given number of elements, so that I can format the page differently, for example you can output text in two columns if the elements are more than 2 etc. etc. -- 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.