i hope you are encountering the problem as request.GET.subseries  is
string and id is integer and they are not matching.

On May 29, 3:52 pm, mbdtsmh <martin.harri...@astrazeneca.com> wrote:
> I have the problem below when I use a tuple to try and match a request
> item; i.e., it never matches. I can do the same thing with a list
> rather than a tuple value and it works fine? I have tried to convert
> the tuple to a string but no joy - is there something obvious I'm
> missing???
>
>         <ul class="categoryitems">
>         {% for id, subseries in SubSeriesChoice %}
>                 <li{% ifequal id request.GET.subseries %}
> class="selected"{% endifequal %}>{{ subseries }}</li>
>         {% endfor %}
>         </ul>
>
> SubSeriesChoice is a list of tuples...
> [(8L, u'Meta'), (9L, u'Para'), (10L, u'Ortho'), (123L, u'amides')]
>
> any help would be very much appreciated.
>
> Thanks,
>
> Martin
--~--~---------~--~----~------------~-------~--~----~
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 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to