Changes between Version 2 and Version 3 of Ticket #25113
- Timestamp:
- Jul 12, 2015, 7:51:21 AM (9 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #25113 – Description
v2 v3 1 1 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: 2 2 3 `test = ProductPreparation.objects.filter( 4 product=product, 5 preparation__id__not_in=preparations)` 3 `test = ProductPreparation.objects.filter(product=product, preparation__id__not_in=preparations)` 6 4 7 5 I feel like adding a field lookup for `__not_in` would be helpful. I've created a pull request on Github: