#30821: Add "iso_week_day" lookup type to DateField/DateTimeField
-------------------------------------+-------------------------------------
Reporter: spookyvision | Owner:
| spookyvision
Type: Uncategorized | Status: assigned
Component: Database layer | Version: master
(models, ORM) |
Severity: Normal | Resolution:
Keywords: ORM Extract | Triage Stage:
| Unreviewed
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Description changed by spookyvision:
Old description:
> as [https://groups.google.com/forum/#!topic/django-developers/pLS-eKhJBwE
> discussed on the mailing list] and
> [https://docs.djangoproject.com/en/2.2/ref/models/database-
> functions/#extract mentioned by the documentation]: Django's `week_day`
> is unusual in that Monday=2.
> Rectify this by adding `iso_week_day` with Monday=1 through Sunday=7.
>
> I have checked "has patch" because I have implemented this feature
> already and will create a PR
New description:
as [https://groups.google.com/forum/#!topic/django-developers/pLS-eKhJBwE
discussed on the mailing list] and
[https://docs.djangoproject.com/en/2.2/ref/models/database-
functions/#extract mentioned by the documentation]: Django's `week_day` is
unusual in that Monday=2.
Rectify this by adding `iso_week_day` with Monday=1 through Sunday=7.
--
--
Ticket URL: <https://code.djangoproject.com/ticket/30821#comment:3>
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/070.39f4082ee09712a963f045cac37d42c2%40djangoproject.com.