Skip to content
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

Model.find_one is returning empty model instead of None #41

Closed
inlinestyle opened this issue Oct 8, 2014 · 0 comments
Closed

Model.find_one is returning empty model instead of None #41

inlinestyle opened this issue Oct 8, 2014 · 0 comments

Comments

@inlinestyle
Copy link
Contributor

This might not be strictly "wrong", and the return value is still falsy since it evaluates as an empty dict, but I suspect that this difference in behavior from pymongo might trip some people up.

@tleach tleach closed this as completed in cac0a5f Oct 8, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant