Skip to content

Conversation

@oahcy
Copy link

@oahcy oahcy commented Sep 13, 2016

from pymongo.objectid import ObjectId

The call seems to work in versions of PyMongo < 2.2

In pymongo 2.2 or higher the call to import objectid is:

from bson.objectid import ObjectId

@reiven
Copy link

reiven commented Mar 3, 2017

+1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants