Raise NotImplementedError in AuditableMixin if the model does not have the properties portfolio_id or application_id
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user