Ticket #14053: django_localize_long_r13459.diff

File django_localize_long_r13459.diff, 577 bytes (added by David Danier <david.danier@…>, 14 years ago)

Allow localize to handle long values

  • django/utils/formats.py

     
    8080    formatted as a string using current locale format
    8181    """
    8282    if settings.USE_L10N:
    83         if isinstance(value, (decimal.Decimal, float, int)):
     83        if isinstance(value, (decimal.Decimal, float, int, long)):
    8484            return number_format(value)
    8585        elif isinstance(value, datetime.datetime):
    8686            return date_format(value, 'DATETIME_FORMAT')
Back to Top