I can apply a filter to convert the request.GET.subseries value to an
integer but is still does not match???

{% ifequal id request.GET.subseries|intvalue %}

I have tried the other way round converting the id to an integer and
keeping the request.GET.subseries as is and this again does not work.

MMMmmmmmmm...


On May 29, 12:50 pm, Rama Vadakattu <rama.vadaka...@gmail.com> wrote:
> 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