#20024: QuerySet.exclude() does not work with lists containing a 'None' element.
-------------------------------------+-------------------------------------
     Reporter:  stillwater.ke@…      |                    Owner:  Adam
                                     |  Sołtysik
         Type:  Bug                  |                   Status:  assigned
    Component:  Database layer       |                  Version:  master
  (models, ORM)                      |
     Severity:  Normal               |               Resolution:
     Keywords:                       |             Triage Stage:  Accepted
    Has patch:  0                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------
Changes (by Adam Sołtysik):

 * owner:  nobody => Adam Sołtysik
 * status:  new => assigned
 * version:  1.4 => master


Comment:

 I wanted to fix this, and I've found that it has already been partially
 fixed in #31667. However, there are no tests for `exclude`, and the
 behaviour is now inconsistent, since
 `exclude(col__in=queryset.values('col2'))` still gives no results when
 `col2` contains `NULL`. I'll try to provide a patch to clean this up.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/20024#comment:8>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/081.fb2e89042cdf045aafcf6d357e9b3cd2%40djangoproject.com.

Reply via email to