Precedence of "locale-dictated format" not mentioned for `MONTH_DAY_FORMAT` and `YEAR_MONTH_FORMAT` settings
When reading the documentation for SHORT_DATE_FORMAT, and other similar Globalization (i18n/l10n) settings, there is a mention about the use of USE_L10N
.
Note that if USE_L10N
is set to True
, then the corresponding locale-dictated format has higher precedence and will be applied.
However when I was reading the MONTH_DAY_FORMAT and YEAR_MONTH_FORMAT settings there was no mention about USE_L10N
.
I was left unsure as to whether the value of USE_L10N
affected these two settings. It could be worth mentioning explicitly whether it does or not so the reader is clearly aware.
Change History
(5)
Triage Stage: |
Unreviewed → Accepted
|
Has patch: |
set
|
Owner: |
changed from nobody to Berker Peksag
|
Status: |
new → assigned
|
Resolution: |
→ fixed
|
Status: |
assigned → closed
|
I've verified the current behavior by creating a simple
AdminModel
model.Here is the PR: https://github.com/django/django/pull/3510