I want to do this:
100 - {{ object.article.rating_score }}
So for example, the output would be 20
if {{ object.article.rating_score }}
equaled 80
.
How do I do this at the template level? I don't have access to the Python code.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…