Opened 16 years ago

Closed 16 years ago

Last modified 16 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: no UI/UX: no

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 by Malcolm Tredinnick, 16 years ago

Resolution: fixed
Status: newclosed

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

comment:2 by Malcolm Tredinnick, 16 years ago

(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