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 )
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 , 5 years ago
Owner: | changed from | to
---|---|
Status: | new → assigned |
comment:2 by , 5 years ago
comment:3 by , 5 years ago
Description: | modified (diff) |
---|
comment:4 by , 5 years ago
Summary: | Add "iso_week_day" lookup type to DateField/DateTimeField → Add "iso_week_day" lookup type to DateField/DateTimeField. |
---|---|
Triage Stage: | Unreviewed → Accepted |
Type: | Uncategorized → New feature |
comment:5 by , 5 years ago
Needs documentation: | set |
---|---|
Needs tests: | set |
comment:6 by , 5 years ago
Needs documentation: | unset |
---|---|
Needs tests: | unset |
Triage Stage: | Accepted → Ready for checkin |
Note:
See TracTickets
for help on using tickets.
tests/timezones/tests.py
tests pass under PostgreSQL, Oracle, SQLite, and MySQL.