#8657 closed (invalid)
How to do a "... where field NOT IN (select field ..."
Reported by: | Owned by: | nobody | |
---|---|---|---|
Component: | Documentation | Version: | dev |
Severity: | Keywords: | filter in | |
Cc: | Triage Stage: | Unreviewed | |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
I have searched your site and the web and cannot find how to do a:
"... where field NOT IN (select field ..."
The docs explain the "fieldin" method which works perfectly, but I cannot find an equivalent notin or a way to negate the whole thing. I have tried everything I can think of
Thanks,
Nate
Change History (2)
comment:1 by , 16 years ago
Resolution: | → invalid |
---|---|
Status: | new → closed |
comment:2 by , 16 years ago
Cool, thanks. It felt like a documentation problem, but I know where you are coming from. Thanks!
Note:
See TracTickets
for help on using tickets.
Please ask support questions on the django-users mailing list. But the method you're looking for is
exclude()
.