Ticket #15129: formats.patch
File formats.patch, 554 bytes (added by , 14 years ago) |
---|
-
django/utils/formats.py
a b 34 34 35 35 def get_format_modules(reverse=False): 36 36 """ 37 Returns a n iterator overthe format modules found37 Returns a list of the format modules found 38 38 """ 39 39 lang = get_language() 40 40 modules = _format_modules_cache.setdefault(lang, list(iter_format_modules(lang))) 41 41 if reverse: 42 modules.reverse()42 return list(reversed(modules)) # Don't reverse in place - that would break consequent calls 43 43 return modules 44 44 45 45 def get_format(format_type):