Opened 9 years ago

Last modified 5 years ago

#25113 closed New feature

Field lookup for __not_in — at Initial Version

Reported by: Evan Tschuy Owned by: nobody
Component: Database layer (models, ORM) Version: dev
Severity: Normal Keywords:
Cc: Triage Stage: Unreviewed
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

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,
preparationidnot_in=preparations)`

I feel like adding a field lookup for not_in would be helpful. I've created a pull request on Github.

Change History (0)

Note: See TracTickets for help on using tickets.
Back to Top