update models to match new migrations

This commit is contained in:
Wayne Witzel III
2016-05-13 11:37:05 -04:00
parent 6a6194cc43
commit 911c92707c
5 changed files with 41 additions and 57 deletions
+5 -10
View File
@@ -208,19 +208,14 @@ class Credential(PasswordFieldsModel, CommonModelNameNotUnique, ResourceMixin):
'singleton:' + ROLE_SINGLETON_SYSTEM_ADMINISTRATOR,
],
)
auditor_role = ImplicitRoleField(
parent_role=[
'singleton:' + ROLE_SINGLETON_SYSTEM_AUDITOR,
],
)
use_role = ImplicitRoleField(
parent_role=['owner_role']
)
read_role = ImplicitRoleField(
parent_role=[
'use_role', 'auditor_role', 'owner_role'
],
)
read_role = ImplicitRoleField(parent_role=[
'singleton:' + ROLE_SINGLETON_SYSTEM_AUDITOR,
'use_role',
'owner_role'
])
@property
def needs_ssh_password(self):