From 27aa6378a52e7e1c0a2e4b05e0ba2d0557d3d4c6 Mon Sep 17 00:00:00 2001 From: David Wallace Date: Mon, 15 Jul 2024 16:20:38 +0200 Subject: [PATCH] style(ruff): fix syle typo in lazy translation Signed-off-by: David Wallace --- rdmo/projects/views/project.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rdmo/projects/views/project.py b/rdmo/projects/views/project.py index 20b2cec753..88fc5fc99a 100644 --- a/rdmo/projects/views/project.py +++ b/rdmo/projects/views/project.py @@ -109,7 +109,7 @@ def get(self, request, token): error = _('Sorry, your invitation has been expired.') invite.delete() elif invite.user and invite.user != request.user: - error = _('Sorry, but this invitation is for the user "{}".'.format(invite.user)) + error = _('Sorry, but this invitation is for the user "%s".') % invite.user elif Membership.objects.filter(project=invite.project, user=request.user).exists(): invite.delete() return redirect(invite.project.get_absolute_url())