Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Django separate thousands in template

My model is returning a Decimal(1234567.50), I can't seem to display the Decimal with a thousands separator. Does Django have a way to do this? Do I need to create my own template filter?

Thanks.

like image 375
mhost Avatar asked Feb 16 '10 02:02

mhost


1 Answers

You can use the intcomma filter.

like image 166
sykora Avatar answered Nov 06 '22 15:11

sykora