refactor form and view for add portfolio member

This commit is contained in:
Rachid Mrad 2024-12-16 17:13:35 -05:00
parent f09627bca6
commit 060f2d5c8a
No known key found for this signature in database
10 changed files with 115 additions and 110 deletions

View file

@ -53,8 +53,8 @@ class AlreadyPortfolioMemberError(InvitationError):
class AlreadyPortfolioInvitedError(InvitationError):
"""Raised when the user has already been invited to the portfolio."""
def __init__(self, email):
super().__init__(f"{email} has already been invited to this portfolio.")
def __init__(self, email, portfolio):
super().__init__(f"{email} has already been invited to {portfolio}.")
class MissingEmailError(InvitationError):