#28649: Add "week_year" lookup to DateField/DateTimeField
-------------------------------------+-------------------------------------
Reporter: Sigurd Ljødal | Owner: Sigurd
| Ljødal
Type: New feature | 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
-------------------------------------+-------------------------------------
Comment (by felixxm):
Current `ExtractWeek` implementation is based on
[https://en.wikipedia.org/wiki/ISO_8601 ISO-8601] (see
[https://docs.djangoproject.com/en/1.11/ref/models/database-
functions/#extract docs]), therefore it should return 52 for January 1st,
2017. If it doesn't then you've found a bug that should be fixed in the
current implementation.
--
Ticket URL: <https://code.djangoproject.com/ticket/28649#comment:5>
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 post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/064.24869e567df2b4fb2db0562604205c5b%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.