#18097: __contains__ on an incompletely evaluated QuerySet can incorrectly 
return
False
-------------------------------------+-------------------------------------
     Reporter:  kmichel_wgs          |                    Owner:  nobody
         Type:  Bug                  |                   Status:  new
    Component:  Database layer       |                  Version:  1.4
  (models, ORM)                      |               Resolution:
     Severity:  Normal               |             Triage Stage:  Accepted
     Keywords:                       |      Needs documentation:  0
    Has patch:  1                    |  Patch needs improvement:  0
  Needs tests:  1                    |                    UI/UX:  0
Easy pickings:  0                    |
-------------------------------------+-------------------------------------

Comment (by kmichel_wgs):

 Actually, after trying to write a test for the bug, I think the bug does
 not really exist.

 During the "self._fill_cache(num=1)", self._iter will be set to None only
 if no element has been added to the _result_cache, in which case there is
 no new element to compare against val.

 Sorry for the false alarm.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/18097#comment:2>
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 [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.

Reply via email to