On 1/8/06, aaloy <[EMAIL PROTECTED]> wrote: > I'm trying to set the defaul value of a select box based on a > parameter, I'm trying something like > > {% for item in items_list %} > <option value="{{item.id}}" label="{{item.name}}" > {% ifequal item.id session.id %} > selected > {% endifequal %} > >{{item.name}}</option> > {% endfor %} > > But it complains about non existent item.id. As far as I can see in > the for documentation there is no way to get the actual value of the > object, isn't it? In that case how could we do that sort of things?
I'm not sure what you mean here...What's the exact error you get? Adrian -- Adrian Holovaty holovaty.com | djangoproject.com | chicagocrime.org