Skip to content

Commit ef15c5f

Browse files
committed
Merge branch '2650-uuid_representation' of https://github.com/robertzak/mongoengine into robertzak-2650-uuid_representation
2 parents a052bd3 + 0c2fd0d commit ef15c5f

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)