Re: [Django] #37140: Document how to handle NULL when using filter()/exclude() with __in subqueries (was: NULL handling of exclude() with __in varies between nullable expressions versus literal None)

5 views
Skip to first unread message

Django

unread,
Jun 15, 2026, 9:20:25 AMJun 15
to django-...@googlegroups.com
#37140: Document how to handle NULL when using filter()/exclude() with __in
subqueries
-------------------------------------+-------------------------------------
Reporter: Sebastian Vera | Owner: (none)
Type: Bug | Status: new
Component: Documentation | Version: dev
Severity: Normal | Resolution:
Keywords: exclude in subquery | Triage Stage: Accepted
NULL NOT IN |
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Jacob Walls):

* component: Database layer (models, ORM) => Documentation
* stage: Unreviewed => Accepted
* summary:
NULL handling of exclude() with __in varies between nullable
expressions versus literal None
=>
Document how to handle NULL when using filter()/exclude() with __in
subqueries

Comment:

Sebastian, if you would like to resubmit a documentation patch following
the above feedback, you are welcome to.
--
Ticket URL: <https://code.djangoproject.com/ticket/37140#comment:4>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
Reply all
Reply to author
Forward
0 new messages