Raise NotImplementedError in AuditableMixin if the model does not have the properties portfolio_id or application_id

This commit is contained in:
leigh-mil
2019-05-21 16:55:55 -04:00
parent 5e2f00b1c2
commit 9f66bbafe5
6 changed files with 28 additions and 3 deletions

View File

@@ -25,3 +25,7 @@ class PortfolioInvitation(Base, TimestampsMixin, InvitesMixin, AuditableMixin):
@property
def portfolio_id(self):
return self.role.portfolio_id
@property
def application_id(self):
return None