Skip to content

Commit 2f23b79

Browse files
committed
Rename --create -> --create-new-keys
This is for client-side configuration, production workflow, in which the first deployment creates collections with an encrypted_fields_map that contains new keys.
1 parent 527a517 commit 2f23b79

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

django_mongodb_backend/management/commands/showencryptedfieldsmap.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ def add_arguments(self, parser):
1919
"fields map. Defaults to the 'default' database.",
2020
)
2121
parser.add_argument(
22-
"--create",
22+
"--create-new-keys",
2323
action="store_true",
2424
help="Create the encrypted fields map.",
2525
)

docs/source/ref/django-admin.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ Available commands
4040
Specifies the database to use.
4141
Defaults to ``default``.
4242

43-
.. django-admin-option:: --create
43+
.. django-admin-option:: --create-new-keys
4444

4545
If specified, creates the data keys instead of getting them from the
4646
database.

tests/encryption_/test_management.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,14 +69,14 @@ def test_show_encrypted_fields_map(self):
6969
output_json["encryption__patientrecord"],
7070
)
7171

72-
def test_create_encrypted_fields_map(self):
72+
def test_create_new_keys(self):
7373
self.maxDiff = None
7474
out = StringIO()
7575
call_command(
7676
"showencryptedfieldsmap",
7777
"--database",
7878
"encrypted",
79-
"--create",
79+
"--create-new-keys",
8080
verbosity=0,
8181
stdout=out,
8282
)

0 commit comments

Comments
 (0)