mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-07-25 12:08:40 +02:00
Update decorators.py
This commit is contained in:
parent
f4db3b2592
commit
b879c92ef7
1 changed files with 2 additions and 1 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue