I'm using Django and Python 3.7. In my template I have this
{{ round(articlestat.votes) }}
which results in teh error
Could not parse the remainder: '(articlestat.votes)' from 'round(articlestat.votes)'
Is there a way to display a rounded version of my number without creating an additional @property method in the model? It just seems like overkill to do a method every time I want the data formatted a little differently.
#python #django