From b8b423a0b770bd8ac035c62f0f8aad4805e0aea7 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Tue, 20 Aug 2024 15:56:18 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- sorl/thumbnail/default.py | 1 + tests/thumbnail_tests/utils.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/sorl/thumbnail/default.py b/sorl/thumbnail/default.py index 2706490fc..9706a9374 100644 --- a/sorl/thumbnail/default.py +++ b/sorl/thumbnail/default.py @@ -4,6 +4,7 @@ from sorl.thumbnail.helpers import get_module_class from sorl.thumbnail.kvstores.cached_db_kvstore import KVStore + class Backend(LazyObject): def _setup(self): self._wrapped = get_module_class(settings.THUMBNAIL_BACKEND)() diff --git a/tests/thumbnail_tests/utils.py b/tests/thumbnail_tests/utils.py index 5dd8fb29e..5d09f5db0 100644 --- a/tests/thumbnail_tests/utils.py +++ b/tests/thumbnail_tests/utils.py @@ -10,8 +10,8 @@ from sorl.thumbnail.conf import settings from sorl.thumbnail.helpers import get_module_class from sorl.thumbnail.images import ImageFile -from sorl.thumbnail.log import ThumbnailLogHandler from sorl.thumbnail.kvstores.cached_db_kvstore import KVStore +from sorl.thumbnail.log import ThumbnailLogHandler from .models import Item from .storage import MockLoggingHandler