Re: Mixing Q objects and lookups with When conditionals

2017-09-21 Thread Jason
Hi Simon, That's how I feel about it too, but couldn't find anything specifically related to it, thus prompting my question. I basically fell into this because django lookups can't handle exclusion (NOT). I suspect there's an alternative to use exclude before the aggregation, like SomeModel

Re: Mixing Q objects and lookups with When conditionals

2017-09-21 Thread Simon Charette
Hello Jason, I don't think this is explicitly documented but I feel like the TypeError raised explicitly states that this isn't supported: __init__() takes either a Q object or lookups as keyword arguments > Did you end up in this situation by following along the documentation or trial and err