Ticket #15918: thousand_sep.patch

File thousand_sep.patch, 641 bytes (added by lev.maximov@…, 13 years ago)
  • django/utils/formats.py

    a b def get_format(format_type, lang=None, use_l10n=None):  
    6969            lang = get_language()
    7070        cache_key = (format_type, lang)
    7171        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:
    7477            for module in get_format_modules():
    7578                try:
    7679                    val = getattr(module, format_type)
Back to Top