Update decorators.py

This commit is contained in:
zandercymatics 2025-03-07 11:55:36 -07:00
parent f4db3b2592
commit b879c92ef7
No known key found for this signature in database
GPG key ID: FF4636ABEC9682B7

View file

@ -289,7 +289,8 @@ def _member_invitation_exists_under_portfolio(portfolio, invitedmember_pk):
# Thus, if it is none, we are not checking on a specific record and therefore there is nothing to check.
if not invitedmember_pk:
logger.info(
"_member_invitation_exists_under_portfolio => Could not find invitedmember_pk. This is a non-issue if called from the right context."
"_member_invitation_exists_under_portfolio => Could not find invitedmember_pk. "
"This is a non-issue if called from the right context."
)
return True
return PortfolioInvitation.objects.filter(portfolio=portfolio, id=invitedmember_pk).exists()