Skip to content

Commit

Permalink
Merge pull request etianen#947 from julianklotz/patch-1
Browse files Browse the repository at this point in the history
Fix “has no attribute” error
  • Loading branch information
etianen authored Sep 29, 2023
2 parents 05a9505 + a256ac3 commit 30dc5c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion reversion/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 30dc5c3

Please sign in to comment.