diff -pruN 5.0.0-1/CHANGELOG.rst 5.0.1-1/CHANGELOG.rst
--- 5.0.0-1/CHANGELOG.rst	2022-02-20 16:46:24.000000000 +0000
+++ 5.0.1-1/CHANGELOG.rst	2022-06-18 10:55:38.000000000 +0000
@@ -3,6 +3,12 @@
 django-reversion changelog
 ==========================
 
+5.0.1 - 2022-06-18
+------------------
+
+- Fix admin detail view in multi-database configuration (@atten).
+
+
 5.0.0 - 2022-02-20
 ------------------
 
diff -pruN 5.0.0-1/debian/changelog 5.0.1-1/debian/changelog
--- 5.0.0-1/debian/changelog	2022-03-16 17:34:50.000000000 +0000
+++ 5.0.1-1/debian/changelog	2022-08-01 08:32:35.000000000 +0000
@@ -1,3 +1,10 @@
+django-reversion (5.0.1-1) unstable; urgency=low
+
+  * New upstream release.
+  * Bump Standards-Version to 4.6.1.0.
+
+ -- Michael Fladischer <fladi@debian.org>  Mon, 01 Aug 2022 08:32:35 +0000
+
 django-reversion (5.0.0-1) unstable; urgency=low
 
   [ Debian Janitor ]
diff -pruN 5.0.0-1/debian/control 5.0.1-1/debian/control
--- 5.0.0-1/debian/control	2022-03-16 17:34:50.000000000 +0000
+++ 5.0.1-1/debian/control	2022-08-01 08:32:35.000000000 +0000
@@ -14,7 +14,7 @@ Build-Depends:
  python3-setuptools,
  python3-sphinx,
  python3-sphinx-rtd-theme,
-Standards-Version: 4.6.0
+Standards-Version: 4.6.1.0
 Homepage: https://github.com/etianen/django-reversion
 Vcs-Git: https://salsa.debian.org/python-team/packages/django-reversion.git
 Vcs-Browser: https://salsa.debian.org/python-team/packages/django-reversion
diff -pruN 5.0.0-1/docs/conf.py 5.0.1-1/docs/conf.py
--- 5.0.0-1/docs/conf.py	2022-02-20 16:46:24.000000000 +0000
+++ 5.0.1-1/docs/conf.py	2022-06-18 10:55:38.000000000 +0000
@@ -74,7 +74,7 @@ release = '.'.join(str(x) for x in __ver
 #
 # This is also used if you do content translation via gettext catalogs.
 # Usually you set "language" from the command line for these cases.
-language = None
+language = 'en'
 
 # There are two options for replacing |today|: either, you set today to some
 # non-false value, then it is used:
diff -pruN 5.0.0-1/reversion/admin.py 5.0.1-1/reversion/admin.py
--- 5.0.0-1/reversion/admin.py	2022-02-20 16:46:24.000000000 +0000
+++ 5.0.1-1/reversion/admin.py	2022-06-18 10:55:38.000000000 +0000
@@ -1,5 +1,5 @@
 from contextlib import contextmanager
-from django.db import models, transaction, connection
+from django.db import models, transaction, connections
 from django.contrib import admin, messages
 from django.contrib.admin import options
 from django.contrib.admin.utils import unquote, quote
@@ -163,7 +163,7 @@ class VersionAdmin(admin.ModelAdmin):
 
     def _reversion_revisionform_view(self, request, version, template_name, extra_context=None):
         # Check that database transactions are supported.
-        if not connection.features.uses_savepoints:
+        if not connections[version.db].features.uses_savepoints:
             raise ImproperlyConfigured("Cannot use VersionAdmin with a database that does not support savepoints.")
         # Run the view.
         try:
diff -pruN 5.0.0-1/reversion/__init__.py 5.0.1-1/reversion/__init__.py
--- 5.0.0-1/reversion/__init__.py	2022-02-20 16:46:24.000000000 +0000
+++ 5.0.1-1/reversion/__init__.py	2022-06-18 10:55:38.000000000 +0000
@@ -36,4 +36,4 @@ else:
         get_registered_models,
     )
 
-__version__ = VERSION = (5, 0, 0)
+__version__ = VERSION = (5, 0, 1)
