Skip to content

Commit

Permalink
Merge pull request #156 from adiman9/feat/pass_invite_object_to_signal
Browse files Browse the repository at this point in the history
Add invitation object as an argument to the invite accepted signal
  • Loading branch information
valberg authored Mar 30, 2022
2 parents d64680b + a19e8da commit e55bbf5
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion invitations/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -177,10 +177,14 @@ def get_queryset(self):
def accept_invitation(invitation, request, signal_sender):
invitation.accepted = True
invitation.save()

invite_accepted.send(
sender=signal_sender,
email=invitation.email,
request=request)
request=request,
invitation=invitation,
)

get_invitations_adapter().add_message(
request,
messages.SUCCESS,
Expand Down

0 comments on commit e55bbf5

Please sign in to comment.