Opened 5 years ago

Last modified 5 years ago

#30821 closed New feature

Add "iso_week_day" lookup type to DateField/DateTimeField — at Version 3

Reported by: Anatol Ulrich Owned by: Anatol Ulrich
Component: Database layer (models, ORM) Version: dev
Severity: Normal Keywords: ORM Extract
Cc: Triage Stage: Ready for checkin
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description (last modified by Anatol Ulrich)

as discussed on the mailing list and 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.

Change History (3)

comment:1 by Anatol Ulrich, 5 years ago

Owner: changed from nobody to Anatol Ulrich
Status: newassigned

comment:2 by Anatol Ulrich, 5 years ago

tests/timezones/tests.py tests pass under PostgreSQL, Oracle, SQLite, and MySQL.

comment:3 by Anatol Ulrich, 5 years ago

Description: modified (diff)
Note: See TracTickets for help on using tickets.
Back to Top