diff --git a/docs/ref/models/querysets.txt b/docs/ref/models/querysets.txt
a
|
b
|
|
1383 | 1383 | |
1384 | 1384 | SELECT ... WHERE id > 4; |
1385 | 1385 | |
1386 | | .. fieldlookup:: gte |
| 1386 | .. fieldlookup:: gte |
1387 | 1387 | |
1388 | 1388 | gte |
1389 | 1389 | ~~~ |
… |
… |
|
1566 | 1566 | |
1567 | 1567 | For date/datetime fields, a 'day of the week' match. |
1568 | 1568 | |
| 1569 | Takes an integer value representing the day of week from 1 (Sunday) to 7 |
| 1570 | (Saturday). |
| 1571 | |
1569 | 1572 | Example:: |
1570 | 1573 | |
1571 | 1574 | Entry.objects.filter(pub_date__week_day=2) |
1572 | 1575 | |
1573 | | SQL equivalent:: |
1574 | | |
1575 | | SELECT ... WHERE EXTRACT('dow' FROM pub_date) = '2'; |
1576 | | |
1577 | | (The exact SQL syntax varies for each database engine.) |
| 1576 | (No equivalent SQL code fragment is included for this lookup because |
| 1577 | implementation of the relevant query varies among different database engines.) |
1578 | 1578 | |
1579 | 1579 | Note this will match any record with a pub_date that falls on a Monday (day 2 |
1580 | 1580 | of the week), regardless of the month or year in which it occurs. Week days |