Django 1.1 equivalent of the 'in' operator

Posted by DavidG on Stack Overflow See other posts from Stack Overflow or by DavidG
Published on 2010-04-12T09:29:22Z Indexed on 2010/04/12 9:33 UTC
Read the original article Hit count: 321

Filed under:
|

I need to display a piece of HTML only if a variable value appears in a list. I know that Django 1.2 has an 'in' operator. But I am working on a Google App Engine app. Is there a workaround I can use?

© Stack Overflow or respective owner

Related posts about python

Related posts about django