Merge branch 'master' of github-DDS:dod-ccpo/atst into jrn_no_branch_coverage

This commit is contained in:
Jay Newlin (PW)
2018-12-18 16:29:06 -05:00
2 changed files with 11 additions and 0 deletions

View File

@@ -33,11 +33,16 @@ class EnvironmentRole(Base, mixins.TimestampsMixin, mixins.AuditableMixin):
def history(self):
return self.get_changes()
@property
def displayname(self):
return self.role
@property
def event_details(self):
return {
"updated_user_name": self.user.displayname,
"updated_user_id": str(self.user_id),
"role": self.role,
"environment": self.environment.displayname,
"environment_id": str(self.environment_id),
"project": self.environment.project.name,