def number_renderer(value, field):
    if isinstance(field, models.DecimalField):
        return formats.number_format(value, field.decimal_places)
    return formats.number_format(value)
Format a number.
dataset/ETHPy150Open pydanny/django-admin2/djadmin2/renderers.py/number_renderer