Skip to content

Commit 89205af

Browse files
aclark4lifeJibola
andauthored
Update django_mongodb_backend/schema.py
Co-authored-by: Jib <[email protected]>
1 parent 04d3dc1 commit 89205af

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

django_mongodb_backend/schema.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -439,10 +439,11 @@ def _create_collection(self, model):
439439
if schema_map := getattr(options, "_schema_map", None)
440440
db.create_collection(db_table, encryptedFields=schema_map[db_table])
441441
else:
442-
key_vault_namespace = options._key_vault_namespace
443-
kms_providers = options._kms_providers
444442
ce = ClientEncryption(
445-
kms_providers, key_vault_namespace, client, client.codec_options
443+
options._kms_providers,
444+
options._key_vault_namespace,
445+
client,
446+
client.codec_options
446447
)
447448
encrypted_fields_map = self._get_encrypted_fields_map(model)
448449
provider = router.kms_provider(model)

0 commit comments

Comments
 (0)