mirror of
https://github.com/django/django.git
synced 2025-10-31 09:41:08 +00:00
Fixed #20477: Allowed list of modules for FORMAT_MODULE_PATH
Previously the FORMAT_MODULE_PATH setting only accepted one string (dotted module path). A feature has been added to also allow a list of strings. 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:
committed by
Tim Graham
parent
dfeef8e147
commit
bb0a9a070b
@@ -139,7 +139,10 @@ Forms
|
||||
Internationalization
|
||||
^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
* ...
|
||||
* :setting:`FORMAT_MODULE_PATH` can now be a list of strings representing
|
||||
module paths. This allows importing several format modules from different
|
||||
reusable apps. It also allows overriding those custom formats in your main
|
||||
Django project.
|
||||
|
||||
Management Commands
|
||||
^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
Reference in New Issue
Block a user