mirror of
https://github.com/django/django.git
synced 2025-11-07 07:15:35 +00:00
Fixed stability of data input/output L10N format modules priority order. Thanks tonnzor for the report and fix.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@15402 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
@@ -36,12 +36,12 @@ def iter_format_modules(lang):
|
||||
|
||||
def get_format_modules(reverse=False):
|
||||
"""
|
||||
Returns an iterator over the format modules found
|
||||
Returns a list of the format modules found
|
||||
"""
|
||||
lang = get_language()
|
||||
modules = _format_modules_cache.setdefault(lang, list(iter_format_modules(lang)))
|
||||
if reverse:
|
||||
modules.reverse()
|
||||
return list(reversed(modules))
|
||||
return modules
|
||||
|
||||
def get_format(format_type, lang=None, use_l10n=None):
|
||||
|
||||
Reference in New Issue
Block a user