make a global "managed by AWX/Tower" Credential to represent Galaxy

This commit is contained in:
Ryan Petrello
2020-08-05 07:57:27 -04:00
parent e5552b547b
commit 011822b1f0
7 changed files with 46 additions and 20 deletions

View File

@@ -96,6 +96,10 @@ class Credential(PasswordFieldsModel, CommonModelNameNotUnique, ResourceMixin):
help_text=_('Specify the type of credential you want to create. Refer '
'to the Ansible Tower documentation for details on each type.')
)
managed_by_tower = models.BooleanField(
default=False,
editable=False
)
organization = models.ForeignKey(
'Organization',
null=True,