Skip to content

Commit

Permalink
Add missing argument to invite success message
Browse files Browse the repository at this point in the history
  • Loading branch information
jodal committed Mar 31, 2021
1 parent c52c02a commit f318caf
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion comics/accounts/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,9 @@ def invite(request):
request.POST["email"], inviter=request.user
)
invitation.send_invitation(request)
messages.success('An invitation has been sent to "%s".' % invitation.email)
messages.success(
request, 'An invitation has been sent to "%s".' % invitation.email
)

invitations = request.user.invitation_set.all().order_by("-created")

Expand Down

0 comments on commit f318caf

Please sign in to comment.