Skip to content

Commit 264b37a

Browse files
committed
Use column instead of name
1 parent 176f016 commit 264b37a

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

django_mongodb_backend/schema.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -449,10 +449,7 @@ def _get_encrypted_fields_map(self, model):
449449
return {
450450
"fields": [
451451
{
452-
# (Pdb) fields[2].db_column
453-
# (Pdb) fields[2].name
454-
# 'ssn'
455-
"path": field.name,
452+
"path": field.column,
456453
"bsonType": field.db_type(conn),
457454
# Specify queries in the field definition as a list of query
458455
# types e.g. queries=["equality", "range"]

0 commit comments

Comments
 (0)