Skip to content

Commit

Permalink
Fix “has no attribute” error
Browse files Browse the repository at this point in the history
  • Loading branch information
julianklotz authored Sep 28, 2023
1 parent 05a9505 commit a256ac3
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 a256ac3

Please sign in to comment.