On Fri, Aug 14, 2009 at 11:18 AM, realfun<real...@gmail.com> wrote:
> Hi,
> I have met the situation like "if A==B or A==C: doSomething...", or, "if
> A==B or C: doSomething..."
> I found it's hard to express in Django template, and small though, so no
> meaning to write it as a filter.

put the logic in the view function (or maybe in the model!) and hand a
simple boolean to the template


-- 
Javier

--~--~---------~--~----~------------~-------~--~----~
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