Ticket #15918: thousand_sep.patch
File thousand_sep.patch, 641 bytes (added by , 14 years ago) |
---|
-
django/utils/formats.py
a b def get_format(format_type, lang=None, use_l10n=None): 69 69 lang = get_language() 70 70 cache_key = (format_type, lang) 71 71 try: 72 return _format_cache[cache_key] or getattr(settings, format_type) 73 except KeyError: 72 try: 73 return _format_cache[cache_key] 74 except KeyError: 75 return getattr(settings, format_type) 76 except AttributeError: 74 77 for module in get_format_modules(): 75 78 try: 76 79 val = getattr(module, format_type)