Skip to content

Commit 806a702

Browse files
committed
Remove check for "fields" in encrypted_fields
- encrypted_fields dict will always have "fields" key
1 parent 97a7d2a commit 806a702

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

django_mongodb_backend/schema.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -479,7 +479,9 @@ def _create_collection(self, model):
479479
else:
480480
encrypted_fields = encrypted_fields_map.get(db_table)
481481

482-
if encrypted_fields and encrypted_fields.get("fields"):
482+
# if encrypted_fields and encrypted_fields.get("fields"):
483+
484+
if encrypted_fields:
483485
db.create_collection(db_table, encryptedFields=encrypted_fields)
484486
else:
485487
db.create_collection(db_table)

0 commit comments

Comments
 (0)