ifequal issue

2010-03-10 Thread wolle
equal check does not work. item.id is the id of the Object iterator and berufe_id the selected value from the last selection... {% ifequal item.id "2" %}selected{% endifequal %} seems to work though... Who can help me with this? Thanks Wolle -- You received this message becau

Re: ifequal issue

2010-03-10 Thread wolle
.id }}{% endfor %} > > On Wed, Mar 10, 2010 at 8:01 AM, wolle wrote: > > Hi everybody, > > > I have a question on the ifequal template tag. > > > I have an HTML select where people can filter the database entries. On > > change of the selection I reload the page

Re: ifequal issue

2010-03-10 Thread wolle
Hi Tom, really cool idea, but it does not work... -- Bitte Berufsgruppe wählen -- {% for item in berufe %} {{item.name}} {% endfor %}

Re: ifequal issue

2010-03-13 Thread wolle
two > strings (unless both strings are interned, in which case you have the cost > of interning each string generated through stringformat, which is even more > expensive than a string compare; and 4. The template code, which may be > manipulated by non-programmers, becomes clearer to underst