diff --git a/reversion/models.py b/reversion/models.py index f93a34d0..4b245d92 100644 --- a/reversion/models.py +++ b/reversion/models.py @@ -33,7 +33,7 @@ def _safe_revert(versions): with transaction.atomic(using=version.db): version.revert() except (IntegrityError, ObjectDoesNotExist): - logger.warning('Could not revert to {version}', exc_info=True) + logger.warning(f'Could not revert to {version}', exc_info=True) unreverted_versions.append(version) if len(unreverted_versions) == len(versions): raise RevertError(gettext("Could not save %(object_repr)s version - missing dependency.") % {