I want to do this:
100 - {{ object.article.rating_score }}
So for example, the output would be 20 if {{ object.article.
20
{{ object.article.
Use django-mathfilters. In addition to the built-in add filter, it provides filters to subtract, multiply, divide, and take the absolute value.
For the specific example above, you would use {{ 100|sub:object.article.rating_score }}.
{{ 100|sub:object.article.rating_score }}