Thousand separator for list_editable in django?

前端 未结 2 758
死守一世寂寞
死守一世寂寞 2021-01-26 04:57

*Is there a thousand separator (like 1,000) for list_editable in django?

#model.py
class Product(models.Model):
deal_price = models.IntegerField(db_index=True, b         


        
2条回答
  •  北海茫月
    2021-01-26 04:59

    In case anybody also wants to display more big numbers:

    Add to the default settings in the your settings file (e.g. settings.py):

    USE_THOUSAND_SEPARATOR = True
    

    Source

提交回复
热议问题