We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
get_m2m
If you use get_m2m to get the related objects:
https://piccolo-orm.readthedocs.io/en/latest/piccolo/schema/m2m.html#get-m2m
It will raise a ValueError if there are no matching objects, because under the hood Piccolo uses the is_in clause which requires at least one value.
ValueError
is_in
We should handle this edge case and return an empty list instead.
The text was updated successfully, but these errors were encountered:
Fixed by #1089
Sorry, something went wrong.
No branches or pull requests
If you use
get_m2m
to get the related objects:https://piccolo-orm.readthedocs.io/en/latest/piccolo/schema/m2m.html#get-m2m
It will raise a
ValueError
if there are no matching objects, because under the hood Piccolo uses theis_in
clause which requires at least one value.We should handle this edge case and return an empty list instead.
The text was updated successfully, but these errors were encountered: