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