From f318caf6818fc506e9fe883008f3065dc9cbcd2b Mon Sep 17 00:00:00 2001 From: Stein Magnus Jodal Date: Wed, 31 Mar 2021 17:35:54 +0200 Subject: [PATCH] Add missing argument to invite success message --- comics/accounts/views.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/comics/accounts/views.py b/comics/accounts/views.py index 346887f9..c2cc861f 100644 --- a/comics/accounts/views.py +++ b/comics/accounts/views.py @@ -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")