sprinkle some more i18n love for the credential form

see: https://github.com/ansible/tower/issues/2731
This commit is contained in:
Ryan Petrello 2018-07-31 22:13:17 -04:00
parent ed79a7fc12
commit 0a400ca339
No known key found for this signature in database
GPG Key ID: F2AA5F2122351777

View File

@ -2497,6 +2497,12 @@ class V2CredentialFields(BaseSerializer):
model = Credential
fields = ('*', 'credential_type', 'inputs')
extra_kwargs = {
'credential_type': {
'label': _('Credential Type'),
},
}
class CredentialSerializer(BaseSerializer):
show_capabilities = ['edit', 'delete', 'copy']