Skip to content

Commit

Permalink
Merge pull request #151 from rosexi/master
Browse files Browse the repository at this point in the history
Set inviter in SendJSONInvite
  • Loading branch information
valberg authored Mar 31, 2022
2 parents b8bac5b + 12d4057 commit ab0df00
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions invitations/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,8 @@ def post(self, request, *args, **kwargs):
except (UserRegisteredEmail):
response["invalid"].append({invitee: "user registered email"})
else:
invite.inviter = self.request.user
invite.save()
invite.send_invitation(request)
response["valid"].append({invitee: "invited"})

Expand Down

0 comments on commit ab0df00

Please sign in to comment.