Your Ad Here

Monday, January 16, 2012

how to lookup dictionary in filter return?

my filter return dictionary like this:

{{ somevalue | dic_filter }}


but when i try this

{%for itm in somevalue | dic_filter %}
{{itm}}
{%endfor %}

it only print the key

how can i get the value with this ?

thx!

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

0 comments:

Post a Comment