#31052: Let Django users customize FORMAT_SETTINGS (a feature request)
-----------------------------------------+------------------------
Reporter: אורי | Owner: nobody
Type: Uncategorized | Status: new
Component: Uncategorized | Version: 2.2
Severity: Normal | Keywords:
Triage Stage: Unreviewed | Has patch: 0
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 0
UI/UX: 0 |
-----------------------------------------+------------------------
I customized `FORMAT_SETTINGS` in Speedy Net, you can see more information
in this commit:
https://github.com/speedy-net/speedy-
net/commit/f5dc4896c136a816ab9fe0dc360d3fd59d0a5f33
And on Stack Overflow:
https://stackoverflow.com/questions/57188435/django-how-do-i-override-
default-date-formats-per-locale
To customize `FORMAT_SETTINGS` I had to patch 14 files, because the tests
failed and I had to patch the tests too. Is it possible to let Django
users customize `FORMAT_SETTINGS` without having to patch files? For
example you can check if the settings contain `FORMAT_SETTINGS`, and if it
is - include these settings in the global `FORMAT_SETTINGS` (a union, like
in the above commit).
`formats.FORMAT_SETTINGS =
formats.FORMAT_SETTINGS.union(django_settings.FORMAT_SETTINGS)`
--
Ticket URL: <https://code.djangoproject.com/ticket/31052>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/054.560176cc90c3efeb68c1e2716412bebf%40djangoproject.com.