Ticket #14824: 14824-patch.diff

File 14824-patch.diff, 576 bytes (added by nullie, 5 years ago)
  • trunk/django/utils/formats.py

     
    1717    """
    1818    Does the heavy lifting of finding format modules.
    1919    """
    20     if check_for_language(lang) or settings.USE_L10N:
     20    if settings.USE_L10N and check_for_language(lang):
    2121        format_locations = ['django.conf.locale.%s']
    2222        if settings.FORMAT_MODULE_PATH:
    2323            format_locations.append(settings.FORMAT_MODULE_PATH + '.%s')
Back to Top