Opened 8 years ago

Closed 8 years ago

Last modified 8 years ago

#9432 closed (fixed)

Negation operator missing from Q Objects documentation

Reported by: David Chandek-Stark Owned by: nobody
Component: Documentation Version: 1.0
Severity: Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:

Description

http://docs.djangoproject.com/en/dev/topics/db/queries/#complex-lookups-with-q-objects

The documentation should state that the unary negation operator "~" can be used on a Q object.

The "see also" note which links to http://code.djangoproject.com/browser/django/trunk/tests/modeltests/or_lookups/models.py does provide an example usage of the negation operator.

Change History (2)

comment:1 Changed 8 years ago by Malcolm Tredinnick

Resolution: fixed
Status: newclosed

(In [9267]) Fixed #9432 -- Revived documentation of ~Q usage.

comment:2 Changed 8 years ago by Malcolm Tredinnick

(In [9270]) [1.0.X] Fixed #9432 -- Revived documentation of ~Q usage.

Backport of r9267 from trunk.

Note: See TracTickets for help on using tickets.
Back to Top