From 0e3704963693ddfaaa525054c42333f6ffdb4b47 Mon Sep 17 00:00:00 2001 From: Anssi Kääriäinen Date: Mon, 28 Apr 2014 15:27:36 +0300 Subject: [1.6.x] Fixed #22429 -- Incorrect SQL when using ~Q and F Backpatch of 5e1f4656b98816c96a1cc051224c1b699db480e0 from master. Conflicts: django/db/models/sql/query.py tests/queries/models.py tests/queries/tests.py --- docs/releases/1.6.5.txt | 3 +++ 1 file changed, 3 insertions(+) (limited to 'docs') diff --git a/docs/releases/1.6.5.txt b/docs/releases/1.6.5.txt index 3c46b953b7..891a688030 100644 --- a/docs/releases/1.6.5.txt +++ b/docs/releases/1.6.5.txt @@ -14,3 +14,6 @@ Bugfixes * Fixed ``pgettext_lazy`` crash when receiving bytestring content on Python 2 (`#22565 `_). + +* Fixed the SQL generated when filtering by a negated ``Q`` object that contains + a ``F`` object. (`#22429 `_). -- cgit v1.3