#19616: QuerySet.__contains__ tries to check the length of a None
-------------------------------------+-------------------------------------
     Reporter:  kalugny@…            |                    Owner:  nobody
         Type:  Bug                  |                   Status:  closed
    Component:  Database layer       |                  Version:  1.4
  (models, ORM)                      |               Resolution:  needsinfo
     Severity:  Normal               |             Triage Stage:
     Keywords:                       |  Unreviewed
    Has patch:  0                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  1                    |                    UI/UX:  0
-------------------------------------+-------------------------------------
Changes (by akaariai):

 * status:  new => closed
 * resolution:   => needsinfo


Comment:

 IMO the current iterator code is too complex, and the complexity doesn't
 give us much. See #18702.

 I think we want a test case or self contained project which shows the
 problem. It is hard to say what is happening. From reading the code it
 seems the situation you describe should not happen, yet no doubt it
 happens for your code.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/19616#comment:4>
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 post to this group, send email to django-updates@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to