'Returns a comma-separated number for the given integer.'

def friendly_number(self, value):

    if (self.code not in ('en', 'en_US')):
        return str(value)
    value = str(value)
    parts = []
    while value:
        parts.append(value[(-3):])
        value = value[:(-3)]
    return ','.join(reversed(parts))
