#5763: Queryset doesn't have a "not equal" filter operator
-------------------------------------+-------------------------------------
     Reporter:  jdetaeye             |                    Owner:  nobody
         Type:  New feature          |                   Status:  closed
    Component:  Database layer       |                  Version:  master
  (models, ORM)                      |               Resolution:  wontfix
     Severity:  Normal               |             Triage Stage:  Design
     Keywords:  qs-rf                |  decision needed
    Has patch:  0                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  1                    |                    UI/UX:  0
-------------------------------------+-------------------------------------

Comment (by PhiR_42):

 Just for the record, this is very important for a specific use case: when
 you want to add extra select columns from the joined tables. I have an
 ORM-based search form and using exclude will break in many cases because
 it uses more subqueries. Using filter(related__field__ne = something) will
 work as expected while exclude(related__field = something) will generate a
 subquery and remove the possibility of selecting tables.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/5763#comment:17>
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 [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/066.5d1db988319585157f311f6f49b39ac2%40djangoproject.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to