Merge pull request #2944 from alphagov/allow-replace-revoked-key

Allow replacing a revoked key
This commit is contained in:
Chris Hill-Scott
2019-06-14 16:55:45 +01:00
committed by GitHub
2 changed files with 24 additions and 6 deletions

View File

@@ -749,6 +749,7 @@ class CreateKeyForm(StripWhitespaceForm):
def __init__(self, existing_keys, *args, **kwargs):
self.existing_key_names = [
key['name'].lower() for key in existing_keys
if not key['expiry_date']
]
super().__init__(*args, **kwargs)