mirror of
https://github.com/ansible/awx.git
synced 2026-03-13 23:17:32 -02:30
Credential should have a unique org,kind,name
This commit is contained in:
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user