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…

Eric

Cheers,

J
--
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 .



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


Reply via email to