Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[pull] master from etianen:master #6

Merged
merged 3 commits into from
Sep 30, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,12 @@
django-reversion changelog
==========================

5.0.6 - 2023-09-29
------------------

- Fix handling case of missing object in admin revert (@julianklotz)


5.0.5 - 2023-09-19
------------------

Expand Down
2 changes: 1 addition & 1 deletion reversion/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,4 @@
get_registered_models,
)

__version__ = VERSION = (5, 0, 5)
__version__ = VERSION = (5, 0, 6)
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
Loading