Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Browse files

Fixed #13282 -- Clarified documentation around week_day filtering in …

…querysets. Thanks to wangchun, Ramiro Morales and timo.

git-svn-id: bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit ccf5bb188334fe36b436562025e38abda155aacf 1 parent 5b28f8a
@freakboy3742 freakboy3742 authored
Showing with 5 additions and 5 deletions.
  1. +5 −5 docs/ref/models/querysets.txt
10 docs/ref/models/querysets.txt
@@ -1571,15 +1571,15 @@ week_day
For date/datetime fields, a 'day of the week' match.
+Takes an integer value representing the day of week from 1 (Sunday) to 7
-SQL equivalent::
- SELECT ... WHERE EXTRACT('dow' FROM pub_date) = '2';
-(The exact SQL syntax varies for each database engine.)
+(No equivalent SQL code fragment is included for this lookup because
+implementation of the relevant query varies among different database engines.)
Note this will match any record with a pub_date that falls on a Monday (day 2
of the week), regardless of the month or year in which it occurs. Week days

0 comments on commit ccf5bb1

Please sign in to comment.
Something went wrong with that request. Please try again.