django template find value within list
Posted
by dotty
on Stack Overflow
See other posts from Stack Overflow
or by dotty
Published on 2010-06-02T10:42:43Z
Indexed on
2010/06/02
10:43 UTC
Read the original article
Hit count: 185
Hay, how do i find a value with in python list in django's template system?
example
list = [1,2,3,4,5,6,7]
x = 1
if x is in list:
return u'found!'
else:
return u'not found'
endif:
Something along those lines.
any help would be great
© Stack Overflow or respective owner