On Fri, Jan 8, 2010 at 12:50 PM, Eric Abrahamsen <gir...@gmail.com> wrote: > > On Jan 8, 2010, at 12:28 PM, neridaj wrote: > >> Can anyone tell me why this less than symbol is causing this if >> statement to fail? >> >> {% if page_obj.number|add:"4" < paginator.count %} >> >> {% endif %} >> > > Because the if tag doesn't accept comparison operators. If you're trying to > make a more complex pagination mechanism, you'll probably want to set it up > in the view, or use a custom template tag…
... unless, of course, you're using the 1.2 alpha or trunk version of Django. Django 1.2 will include support for comparison operators in if tags. Yours, Russ Magee %-)
-- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@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.