I have the following set, that works fine in a
requires = IS_IN_DB(myset...my set looks like
<Set ((NOT ("depot"."id" IN (SELECT "user_depot"."depot" FROM "user_depot" WHERE ("user_depot"."user" = 1)))) AND ("depot"."site" = 5))>
When I do :
I get the following error:
psycopg2.errors.SyntaxError: syntax error at or near "<"
LINE 1: SELECT "user_depot"."id" FROM "user_depot" WHERE <Set ((NOT ...
^
How can I execute it and get result ?
I actually only interested in something like db(myset).count() that should also work (according to the doc about select)