1
0
mirror of https://github.com/netbox-community/netbox.git synced 2024-05-10 07:54:54 +00:00

Fixes #3514: Label TextVar fields when rendering custom script forms

This commit is contained in:
Jeremy Stretch
2019-09-18 15:39:26 -04:00
parent 84208d5429
commit a0545568cd
7 changed files with 18 additions and 9 deletions

View File

@@ -199,6 +199,9 @@ class UserKeyForm(BootstrapMixin, forms.ModelForm):
'public_key': "Enter your public RSA key. Keep the private one with you; you'll need it for decryption. "
"Please note that passphrase-protected keys are not supported.",
}
labels = {
'public_key': ''
}
def clean_public_key(self):
key = self.cleaned_data['public_key']