#14029: not operator on F objects silently fails
---------------------------------------------------+------------------------
          Reporter:  ramiro                        |         Owner:  
marcosmoyano
            Status:  assigned                      |     Milestone:             
 
         Component:  Database layer (models, ORM)  |       Version:  1.2        
 
        Resolution:                                |      Keywords:             
 
             Stage:  Accepted                      |     Has_patch:  0          
 
        Needs_docs:  0                             |   Needs_tests:  0          
 
Needs_better_patch:  0                             |  
---------------------------------------------------+------------------------
Comment (by marcosmoyano):

 I think a query like field=~Q('field') wouldn't be valid (or usefull)
 since it will query items with a negated value than the actual value, this
 giving an empty result all the time.
 ie:
 {{{
 SELECT "ticket_14029_testmodel"."id", "ticket_14029_testmodel"."field1"
 FROM "ticket_14029_testmodel" WHERE NOT "ticket_14029_testmodel"."field1"
 = "ticket_14029_testmodel"."field1" LIMIT 21;
 }}}

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