#25113: Field lookup for __not_in
----------------------------------------------+--------------------
Reporter: tschuy | Owner: nobody
Type: New feature | Status: new
Component: Database layer (models, ORM) | Version: master
Severity: Normal | Keywords:
Triage Stage: Unreviewed | Has patch: 1
Easy pickings: 0 | UI/UX: 0
----------------------------------------------+--------------------
Making a query where I can get all of the objects matching a certain list
is quite useful. However, Django currently doesn't allow me to get objects
that DON'T match a list:
`test = ProductPreparation.objects.filter(
product=product,
preparation__id__not_in=preparations)`
I feel like adding a field lookup for __not_in would be helpful. I've
created a pull request on Github.
--
Ticket URL: <https://code.djangoproject.com/ticket/25113>
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/049.cc5e7c09bd452d998f45ccb4db432879%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.