mirror of
https://github.com/django/django.git
synced 2025-08-04 19:08:28 +00:00
Fixed #20477: Allowed settings.FORMAT_MODULE_PATH to be a list of modules.
Previously the FORMAT_MODULE_PATH setting only accepted one string (dotted module path). This is useful when using several reusable third party apps that define new formats. We can now use them all and we can even override some of the formats by providing a project-wide format module.
This commit is contained in:
parent
bfac6bef83
commit
950b6de16a
11 changed files with 103 additions and 9 deletions
4
tests/utils_tests/test_module/formats/__init__.py
Normal file
4
tests/utils_tests/test_module/formats/__init__.py
Normal file
|
@ -0,0 +1,4 @@
|
|||
"""
|
||||
Custom format module. Used by tests in ``tests/utils_tests/test_formats.py``.
|
||||
|
||||
"""
|
0
tests/utils_tests/test_module/formats/en/__init__.py
Normal file
0
tests/utils_tests/test_module/formats/en/__init__.py
Normal file
0
tests/utils_tests/test_module/formats/en/formats.py
Normal file
0
tests/utils_tests/test_module/formats/en/formats.py
Normal file
0
tests/utils_tests/test_module/formats2/__init__.py
Normal file
0
tests/utils_tests/test_module/formats2/__init__.py
Normal file
0
tests/utils_tests/test_module/formats2/en/__init__.py
Normal file
0
tests/utils_tests/test_module/formats2/en/__init__.py
Normal file
0
tests/utils_tests/test_module/formats2/en/formats.py
Normal file
0
tests/utils_tests/test_module/formats2/en/formats.py
Normal file
Loading…
Add table
Add a link
Reference in a new issue