#36145: FIRST_DAY_OF_WEEK setting not changing the Admin calendar widget
-----------------------------+-----------------------------------------
Reporter: Phil Gyford | Type: Bug
Status: new | Component: contrib.admin
Version: 5.1 | 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
-----------------------------+-----------------------------------------
The docs for the `FIRST_DAY_OF_WEEK` setting
(https://docs.djangoproject.com/en/5.1/ref/settings/#first-day-of-week )
say:
A number representing the first day of the week. This is especially
useful when displaying a calendar. This value is only used when not using
format internationalization, or when a format cannot be found for the
current locale.
But if I set mine to `FIRST_DAY_OF_WEEK = 1` (Monday) then the calendar
widgets in Admin still start on the default, Sunday.
I've tried with `USE_I18N` set to both `True` and `False`, with no change.
I posted this query in the Django Forum but we were stumped as to whether
the documentation or the code was wrong in some way
https://forum.djangoproject.com/t/django-admin-date-pickers-ignoring-
first-day-of-week/38170/2
--
Ticket URL: <https://code.djangoproject.com/ticket/36145>
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 visit
https://groups.google.com/d/msgid/django-updates/01070194a724bc4b-a76e28ab-5a68-4b83-a2bc-2d0df80bb32a-000000%40eu-central-1.amazonses.com.