-
Notifications
You must be signed in to change notification settings - Fork 112
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
WKBElement class has no __bool__ method #243
Comments
I am not sure of what you want to achieve but can't you just check whether your wkb object is None or not? |
Checking for None is what I am currently doing. |
Ok, I see your point. |
Yes simply returning |
It seems like currently WKBElment objects returned by queries don't have a bool method thus it's not easy to implement logic that conditions on the ORM model having a non null GIS field.
What do you think about adding the following ?
The text was updated successfully, but these errors were encountered: