Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 2 commits into from
Oct 2, 2019

Conversation

spookyvision
Copy link
Contributor

No description provided.

@felixxm felixxm changed the title Fixed #30821 -- Added iso_week_day Fixed #30821 -- Added ExtractIsoWeekYear database function and iso_week_day lookup. Oct 1, 2019
Copy link
Member

@felixxm felixxm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@spookyvision Thanks for this patch 👍 I left few comments.

Please add also iso_week_day to lookups that are not allowed for DurationField and a test case for that (db_functions.datetime.test_extract_trunc.DateFunctionWithTimeZoneTests.test_extract_duration_unsupported_lookups).

Also tests for ExtractIsoWeekDay are missing (see tests/db_functions/datetime/test_extract_trunc.py for examples).

django/db/backends/mysql/operations.py Show resolved Hide resolved
django/db/models/functions/datetime.py Outdated Show resolved Hide resolved
docs/ref/models/database-functions.txt Show resolved Hide resolved
docs/ref/models/database-functions.txt Show resolved Hide resolved
docs/ref/models/querysets.txt Outdated Show resolved Hide resolved
docs/releases/3.1.txt Outdated Show resolved Hide resolved
@felixxm felixxm self-assigned this Oct 1, 2019
@spookyvision
Copy link
Contributor Author

I've added test cases for ExtractIsoWeekDay and DurationField and changed the PR according to the other review comments.

@felixxm felixxm force-pushed the ticket_30821 branch 2 times, most recently from eae3c62 to ec06827 Compare October 2, 2019 07:10
@felixxm
Copy link
Member

felixxm commented Oct 2, 2019

@spookyvision Thanks 🚀 ! I rebased from master, squashed commits, pushed minor edits, and added few more tests and examples in docs.

Welcome aboard ⛵

@felixxm felixxm merged commit 8ed6788 into django:master Oct 2, 2019
@spookyvision spookyvision deleted the ticket_30821 branch October 2, 2019 09:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants