Opened 16 years ago

Closed 16 years ago

Last modified 16 years ago

#8657 closed (invalid)

How to do a "... where field NOT IN (select field ..."

Reported by: Nate Thelen <nate@…> 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 Malcolm Tredinnick, 16 years ago

Resolution: invalid
Status: newclosed

Please ask support questions on the django-users mailing list. But the method you're looking for is exclude().

comment:2 by Nate Thelen <nate@…>, 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.
Back to Top