(value, field)
return formats.number_format(value)
Format a number.

    :param value: The value to process.
    :type value: float or long
    :param field: The model field instance
    :type field: django.db.models.fields.Field
    :rtype: unicode
Format a number.
Format a number .
def number_renderer(value, field):
    """
    Format a number.

    :param value: The value to process.
    :type value: float or long
    :param field: The model field instance
    :type field: django.db.models.fields.Field
    :rtype: unicode

    """
    if isinstance(field, models.DecimalField):
        return formats.number_format(value, field.decimal_places)
    return formats.number_format(value)
def number_renderer ( value , field ) : if isinstance ( field , models . DecimalField ) : return formats . number_format ( value , field . decimal_places ) return formats . number_format ( value )