Opened 6 years ago

Closed 6 years ago

Last modified 6 years ago

#13882 closed (fixed)

exclude on nullable fields uses an overly complex internal representation

Reported by: Alex Gaynor Owned by: nobody
Component: Database layer (models, ORM) Version: 1.2
Severity: Keywords:
Cc: Triage Stage: Unreviewed
Has patch: yes Needs documentation:
Needs tests: Patch needs improvement:
Easy pickings: UI/UX:

Description

It nests Where clauses more than is necessary, and this can be trivially fixed.

Attachments (1)

django-orm-exclude-null.diff (834 bytes) - added by Alex Gaynor 6 years ago.

Download all attachments as: .zip

Change History (3)

Changed 6 years ago by Alex Gaynor

comment:1 Changed 6 years ago by Russell Keith-Magee

Resolution: fixed
Status: newclosed

(In [13456]) Fixed #13882 -- Removed an unnecessary nested where clause introduced on isnull queries. Thanks to Alex Gaynor for the report and patch.

comment:2 Changed 6 years ago by Russell Keith-Magee

(In [13457]) [1.2.X] Fixed #13882 -- Removed an unnecessary nested where clause introduced on isnull queries. Thanks to Alex Gaynor for the report and patch.

Backport of r13456 from trunk.

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