Ticket #14053: django_localize_long_r13459.diff
File django_localize_long_r13459.diff, 577 bytes (added by , 14 years ago) |
---|
-
django/utils/formats.py
80 80 formatted as a string using current locale format 81 81 """ 82 82 if settings.USE_L10N: 83 if isinstance(value, (decimal.Decimal, float, int )):83 if isinstance(value, (decimal.Decimal, float, int, long)): 84 84 return number_format(value) 85 85 elif isinstance(value, datetime.datetime): 86 86 return date_format(value, 'DATETIME_FORMAT')