Hi Folks,

I'm having some issues with {% ifequal %}. What I'm trying to do is
have a drop down list remember the values that are sent on a get
request that is sent to the same page. I pass the value of the variable
(show_only in this case) back to the template, and then I have this
statement in the <option> section:

{% for job in jobs_list %}
<option value="{{ job.id }}"{% ifequal show_only job.id %} selected{%
endifequal %}>{% filter escape %}{{ job.shortsubject }}{% endfilter
%}</option>
{% endfor %}

Problem is, even when show_only is, for example, 2, and job.id is also
2 the ifequal statement doesn't seem to recognize that and is not
showing the crucial "selected" html which allows the drop down list to
"remember" the values that it should be doing.

Is this something related to numerical values (both are supposed to be
numerical values? 

Thanks, Tom


--~--~---------~--~----~------------~-------~--~----~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users
-~----------~----~----~----~------~----~------~--~---

Reply via email to