Skip to content

Commit 6be6a96

Browse files
Update django_mongodb_backend/schema.py
Co-authored-by: Tim Graham <timograham@gmail.com>
1 parent c7f59ce commit 6be6a96

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

django_mongodb_backend/schema.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -500,7 +500,7 @@ def _get_encrypted_fields(self, model, key_alt_name=None, path_prefix=None):
500500
)
501501

502502
kms_provider = router.kms_provider(model)
503-
master_key = connection.settings_dict.get("KMS_CREDENTIALS", {}).get(kms_provider)
503+
master_key = auto_encryption_opts._kms_providers[kms_provider]
504504
client_encryption = self.connection.client_encryption
505505

506506
field_list = []

0 commit comments

Comments
 (0)