mirror of
https://github.com/ansible/awx.git
synced 2026-01-22 23:18:03 -03:30
Credential should have a unique org,kind,name
This commit is contained in:
parent
c20e9baa55
commit
3575b32eab
@ -61,6 +61,7 @@ class Credential(PasswordFieldsModel, CommonModelNameNotUnique, ResourceMixin):
|
||||
class Meta:
|
||||
app_label = 'main'
|
||||
ordering = ('kind', 'name')
|
||||
unique_together = (('organization', 'name', 'kind'),)
|
||||
|
||||
deprecated_user = models.ForeignKey(
|
||||
'auth.User',
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user