#11052: Q-Object disjunction join promotion .. bug
---------------------------------------------------+------------------------
          Reporter:  emulbreh                      |         Owner:  
mtredinnick       
            Status:  assigned                      |     Milestone:  1.3        
       
         Component:  Database layer (models, ORM)  |       Version:  SVN        
       
        Resolution:                                |      Keywords:  m2m, join, 
null, q
             Stage:  Accepted                      |     Has_patch:  1          
       
        Needs_docs:  0                             |   Needs_tests:  1          
       
Needs_better_patch:  1                             |  
---------------------------------------------------+------------------------
Comment (by mucisland):

 #13198 describes the behaviour which emulbreh named "probably a different
 bug" in his observation:
 {{{
 >>> # probably a different bug:
 >>> A.objects.exclude(Q(bs__name__contains="foo"))
 [<A: A object>]
 >>> A.objects.exclude(bs__name__contains="foo")
 [<A: A object>, <A: A object>]
 }}}
 Well, #13198 has been closed and I learned that this is terminal. I just
 wanted to point out a last time that exclude() does not work as one would
 expect when using it with Q.

-- 
Ticket URL: <http://code.djangoproject.com/ticket/11052#comment:7>
Django <http://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