#31052: Let Django users customize FORMAT_SETTINGS (a feature request)
-------------------------------+--------------------------------------
Reporter: אורי | Owner: nobody
Type: Uncategorized | Status: new
Component: Uncategorized | Version: 2.2
Severity: Normal | Resolution:
Keywords: | Triage Stage: Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------+--------------------------------------
Comment (by אורי):
In django/utils/formats the `FORMAT_SETTINGS` is defined as a `frozenset`:
https://github.com/django/django/blob/master/django/utils/formats.py#L31-L46
After this definition, you can add a code such as:
```
if ("FORMAT_SETTINGS" in settings):
FORMAT_SETTINGS = FORMAT_SETTINGS.union(settings.FORMAT_SETTINGS)
```
These 2 lines might do the job.
(I tried but I didn't find how to include code here as code).
--
Ticket URL: <https://code.djangoproject.com/ticket/31052#comment:1>
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/069.39886a7cf98dc5ade8dac7808d7c63a5%40djangoproject.com.