-
-
Notifications
You must be signed in to change notification settings - Fork 353
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to parse Boolean SQL condition #562
Comments
@magmonium I also have the same problem. The solution:
But it is just a temporary solution because many libraries use filter syntax like yours |
@ngocngoan thanks for your reply with workaround. I am going to use this solution till this request is addressed. :) |
Seems like the issue has been raised from a year ago and still not fixed! |
Here is a monkey patch approach that is less interruptive: from djongo.base import DatabaseWrapper
from djongo.operations import DatabaseOperations
class PatchedDatabaseOperations(DatabaseOperations):
def conditional_expression_supported_in_where_clause(self, expression):
return False
DatabaseWrapper.ops_class = PatchedDatabaseOperations import this file in either Someone can submit a PR based on the above solution. |
Why is this issue closed? I'm still having this issue. |
Issue still present, had to use "__in=[True]" workaround. |
It is 2022 - still facing this issue. In the past three hours, I have explored the corners of dark webs and contemplated quitting my career. That said, thank you @ngocngoan |
description
Djongo unable to parse following where condition for Boolean value.
Python script
Traceback
The text was updated successfully, but these errors were encountered: