Skip to content

Commit e4b2926

Browse files
Update django_mongodb_backend/management/commands/showencryptedfieldsmap.py
Co-authored-by: Tim Graham <[email protected]>
1 parent 1d49303 commit e4b2926

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

django_mongodb_backend/management/commands/showencryptedfieldsmap.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ def handle(self, *args, **options):
3535
db = options["database"]
3636
create_data_keys = options.get("create_data_keys", False)
3737
connection = connections[db]
38+
connection.ensure_connection()
3839
encrypted_fields_map = {}
3940
with connection.schema_editor() as editor:
4041
for app_config in apps.get_app_configs():

0 commit comments

Comments
 (0)