I'm having a problem with this query:

I believe,

Q(bundle__contains=OuterRef("book_id"))

part of the query is expecting an array instead of single value.

I'm getting this error:


ProgrammingError: operator does not exist: jsonb @> bigint
LINE 1: ...lisher"."book_id") OR U0."bundle" @> ("publisher_...
                                                             ^
HINT: No operator matches the given name and argument types. You might need
to add explicit type casts.



Is there a way to handle this error? How can I cast the value into an array
within the query?

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CACp8TZgfrDY6ceG5jTcX81-6%3DDQHAf0sZms7%3D3B_iyDiX2949g%40mail.gmail.com.

Reply via email to