#10631 closed (invalid)
Documentation: SQL for second exclude example is incorrect
| Reported by: | Stuart Colville | Owned by: | nobody |
|---|---|---|---|
| Component: | Documentation | Version: | 1.0 |
| Severity: | Keywords: | ||
| 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
See http://docs.djangoproject.com/en/dev/ref/models/querysets/#exclude-kwargs
The second example has AND instead of OR.
SELECT ... WHERE NOT pub_date > '2005-1-3' AND NOT headline = 'Hello'
Should be:
SELECT ... WHERE NOT pub_date > '2005-1-3' OR NOT headline = 'Hello'
Attachments (1)
Change History (4)
by , 17 years ago
| Attachment: | ticket_10631.diff added |
|---|
comment:1 by , 17 years ago
| Has patch: | set |
|---|---|
| milestone: | → 1.1 |
| Triage Stage: | Unreviewed → Ready for checkin |
Note:
See TracTickets
for help on using tickets.
Doc fix