diff options
| author | Ramiro Morales <cramm0@gmail.com> | 2011-02-03 15:43:50 +0000 |
|---|---|---|
| committer | Ramiro Morales <cramm0@gmail.com> | 2011-02-03 15:43:50 +0000 |
| commit | 987fd511769a3e1342fe8678a0b183f2831adb60 (patch) | |
| tree | 2027f8c5857783c86a017f71ec42ca8157912e92 /django/utils | |
| parent | a158873488b06077f65fce35e9ea57658a64c872 (diff) | |
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
Diffstat (limited to 'django/utils')
| -rw-r--r-- | django/utils/formats.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/django/utils/formats.py b/django/utils/formats.py index 1eb7a3d837..3c43f52f2f 100644 --- a/django/utils/formats.py +++ b/django/utils/formats.py @@ -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): |
