Opened 6 years ago

Closed 6 years ago

Last modified 6 years ago

#9432 closed (fixed)

Negation operator missing from Q Objects documentation

Reported by: dchandek Owned by: nobody
Component: Documentation Version: 1.0
Severity: Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation:
Needs tests: Patch needs improvement:
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 6 years ago by mtredinnick

  • Resolution set to fixed
  • Status changed from new to closed

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

comment:2 Changed 6 years ago by mtredinnick

(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