I've just come up against the same problem. I ended up coding a custom
filter as a workaround.
#Custom Filter
@register.filter
def bartest(value, arg):
if (value == int(arg)):
return "trueval"
else:
return "falseval"
>>>>>>>>>>> snip <<<<<<<
template example:
{{ foo.id|bartest:bar }}
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/django-developers
-~----------~----~----~----~------~----~------~--~---