diff options
| author | Anatol Ulrich <anatol@versteht.es> | 2019-10-01 00:12:19 +0200 |
|---|---|---|
| committer | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2019-10-02 10:41:34 +0200 |
| commit | 8ed6788aa479034a44a8aa87da47de56dd728c95 (patch) | |
| tree | 1beb121695f5b6331bc8bc2d7fb2f7e808034026 /django/db/backends/sqlite3/base.py | |
| parent | e1aa93280276c7197637a763344cb9740d0e91ff (diff) | |
Fixed #30821 -- Added ExtractIsoWeekYear database function and iso_week_day lookup.
Diffstat (limited to 'django/db/backends/sqlite3/base.py')
| -rw-r--r-- | django/db/backends/sqlite3/base.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/django/db/backends/sqlite3/base.py b/django/db/backends/sqlite3/base.py index 7a4439ae88..f959f921f1 100644 --- a/django/db/backends/sqlite3/base.py +++ b/django/db/backends/sqlite3/base.py @@ -478,6 +478,8 @@ def _sqlite_datetime_extract(lookup_type, dt, tzname=None, conn_tzname=None): return None if lookup_type == 'week_day': return (dt.isoweekday() % 7) + 1 + elif lookup_type == 'iso_week_day': + return dt.isoweekday() elif lookup_type == 'week': return dt.isocalendar()[1] elif lookup_type == 'quarter': |
