Categories
Why doesn't the templating code work?
{% if post.number|add:'-2' > 0 %} {{ posts.number|add:'-2' }} {% endif %}
Answer the question
In order to leave comments, you need to log in
post vs posts and you don't need to do this in templates, calculate in views
Didn't find what you were looking for?
Ask a Question
731 491 924 answers to any question