Skip to content

Commit 32a80b2

Browse files
committed
Make uuidRepresentation case insensitive
1 parent 1790f3d commit 32a80b2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

mongoengine/connection.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,8 @@ def _get_connection_settings(
166166
kwargs.pop("slaves", None)
167167
kwargs.pop("is_slave", None)
168168

169-
if "uuidRepresentation" not in kwargs:
169+
keys = set(key.lower for key in kwargs.keys())
170+
if "uuidrepresentation" not in keys:
170171
warnings.warn(
171172
"No uuidRepresentation is specified! Falling back to "
172173
"'pythonLegacy' which is the default for pymongo 3.x. "

0 commit comments

Comments
 (0)