We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 97a7d2a commit 806a702Copy full SHA for 806a702
django_mongodb_backend/schema.py
@@ -479,7 +479,9 @@ def _create_collection(self, model):
479
else:
480
encrypted_fields = encrypted_fields_map.get(db_table)
481
482
- if encrypted_fields and encrypted_fields.get("fields"):
+ # if encrypted_fields and encrypted_fields.get("fields"):
483
+
484
+ if encrypted_fields:
485
db.create_collection(db_table, encryptedFields=encrypted_fields)
486
487
db.create_collection(db_table)
0 commit comments