Make sure all log events have portfolio and app ids (where applicable)

This commit is contained in:
leigh-mil
2019-05-16 16:58:41 -04:00
parent 927d1b7925
commit a1eb7ec935
8 changed files with 73 additions and 36 deletions

View File

@@ -26,6 +26,10 @@ class ApplicationInvitation(Base, TimestampsMixin, AuditableMixin, InvitesMixin)
def application_id(self):
return self.role.application_id
@property
def portfolio_id(self):
return self.role.portfolio_id
@property
def event_details(self):
return {"email": self.email, "dod_id": self.user_dod_id}