implemented global IS_PYMONGO_3
This commit is contained in:
@@ -295,7 +295,7 @@ class Document(BaseDocument):
|
||||
|
||||
# I think the self._created flag is not necessarily required in PyMongo3
|
||||
# but may cause test test_collection_name_and_primary to fail
|
||||
# if pymongo.version_tuple[0] < 3:
|
||||
# if not IS_PYMONGO_3:
|
||||
created = ('_id' not in doc or self._created or force_insert)
|
||||
# else:
|
||||
# created = ('_id' not in doc or force_insert)
|
||||
|
||||
Reference in New Issue
Block a user