views:

15

answers:

0

Found out about using intcomma with floatformat here, but have not been able to get it working. Here's what I've done:

1) Add django.contrib.humanize to installed apps
2) Add {% load humanize %} to top of template
3) Using {{ feeditem.distance|floatformat(0)|intcomma }} in the code

Interestingly, floatformat:0 and floatformat:"0" did not work for me, but floatformat(0) works as expected until I add intcomma.

Error is

no filter named 'intcomma'

Am I missing something? Not much documentation on how to use this.