Ticket #15024: format-module-ordering.diff
File format-module-ordering.diff, 417 bytes (added by , 14 years ago) |
---|
-
django/utils/formats.py
diff --git a/django/utils/formats.py b/django/utils/formats.py index c23a37c..41c9e32 100644
a b def get_format_modules(reverse=False): 38 38 """ 39 39 lang = get_language() 40 40 modules = _format_modules_cache.setdefault(lang, list(iter_format_modules(lang))) 41 modules.sort() 41 42 if reverse: 42 43 modules.reverse() 43 44 return modules