Changes between Version 2 and Version 3 of Ticket #25113


Ignore:
Timestamp:
Jul 12, 2015, 7:51:21 AM (9 years ago)
Author:
Evan Tschuy
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #25113 – Description

    v2 v3  
    11Making 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:
    22
    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)`
    64
    75I feel like adding a field lookup for `__not_in` would be helpful. I've created a pull request on Github:
Back to Top