Skip to content

Commit 3342d7f

Browse files
Update django_mongodb_backend/schema.py
Co-authored-by: Tim Graham <[email protected]>
1 parent 13578ab commit 3342d7f

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
@@ -449,7 +449,7 @@ def _get_encrypted_fields_map(self, model):
449449
return {
450450
"fields": [
451451
{
452-
"path": field.name,
452+
"path": field.db_column,
453453
"bsonType": field.db_type(conn),
454454
# Specify queries in the field definition as a list of query
455455
# types e.g. queries=["equality", "range"]

0 commit comments

Comments
 (0)