Opened 5 years ago

Closed 5 years ago

#30821 closed New feature (fixed)

Add "iso_week_day" lookup type to DateField/DateTimeField.

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 (7)

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)

comment:4 by Mariusz Felisiak, 5 years ago

Summary: Add "iso_week_day" lookup type to DateField/DateTimeFieldAdd "iso_week_day" lookup type to DateField/DateTimeField.
Triage Stage: UnreviewedAccepted
Type: UncategorizedNew feature

comment:5 by Mariusz Felisiak, 5 years ago

Needs documentation: set
Needs tests: set

comment:6 by Mariusz Felisiak, 5 years ago

Needs documentation: unset
Needs tests: unset
Triage Stage: AcceptedReady for checkin

comment:7 by Mariusz Felisiak <felisiak.mariusz@…>, 5 years ago

Resolution: fixed
Status: assignedclosed

In 8ed6788a:

Fixed #30821 -- Added ExtractIsoWeekYear database function and iso_week_day lookup.

Note: See TracTickets for help on using tickets.
Back to Top