Ticket #15024: format-module-ordering.diff

File format-module-ordering.diff, 417 bytes (added by DavidReynolds, 4 years ago)

Initial patch

  • 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): 
    3838    """
    3939    lang = get_language()
    4040    modules = _format_modules_cache.setdefault(lang, list(iter_format_modules(lang)))
     41    modules.sort()
    4142    if reverse:
    4243        modules.reverse()
    4344    return modules
Back to Top