We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 29a1d97 commit 04d3dc1Copy full SHA for 04d3dc1
django_mongodb_backend/schema.py
@@ -436,8 +436,7 @@ def _create_collection(self, model):
436
client = self.connection.connection
437
options = getattr(client._options, "auto_encryption_opts", None)
438
if options is not None:
439
- schema_map = getattr(options, "_schema_map", None)
440
- if schema_map:
+ if schema_map := getattr(options, "_schema_map", None)
441
db.create_collection(db_table, encryptedFields=schema_map[db_table])
442
else:
443
key_vault_namespace = options._key_vault_namespace
0 commit comments