From a256ac339086ea25445737de38018f9dd2862583 Mon Sep 17 00:00:00 2001 From: julianklotz Date: Thu, 28 Sep 2023 10:24:22 +0200 Subject: [PATCH] =?UTF-8?q?Fix=20=E2=80=9Chas=20no=20attribute=E2=80=9D=20?= =?UTF-8?q?error?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- reversion/admin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reversion/admin.py b/reversion/admin.py index 2c84f0a4..2b94a0fe 100644 --- a/reversion/admin.py +++ b/reversion/admin.py @@ -184,7 +184,7 @@ def _reversion_revisionform_view(self, request, version, template_name, extra_co raise _RollBackRevisionView(response) # Raise exception to undo the transaction and revision. else: raise RevertError(_("Could not load %(object_repr)s version - not found") % { - "object_repr": self.object_repr, + "object_repr": version.object_repr, }) except (RevertError, models.ProtectedError) as ex: opts = self.model._meta