mirror of
https://github.com/jazzband/django-downloadview.git
synced 2026-03-16 22:40:25 +00:00
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
This commit is contained in:
parent
840827da1d
commit
73f9c013cd
2 changed files with 3 additions and 3 deletions
|
|
@ -145,7 +145,7 @@ class SmartDownloadMiddleware(DownloadDispatcherMiddleware):
|
||||||
self.backend_factory = import_member(settings.DOWNLOADVIEW_BACKEND)
|
self.backend_factory = import_member(settings.DOWNLOADVIEW_BACKEND)
|
||||||
except AttributeError:
|
except AttributeError:
|
||||||
raise ImproperlyConfigured(
|
raise ImproperlyConfigured(
|
||||||
"SmartDownloadMiddleware requires " "settings.DOWNLOADVIEW_BACKEND"
|
"SmartDownloadMiddleware requires settings.DOWNLOADVIEW_BACKEND"
|
||||||
)
|
)
|
||||||
|
|
||||||
def auto_configure_backend_options(self):
|
def auto_configure_backend_options(self):
|
||||||
|
|
@ -155,7 +155,7 @@ class SmartDownloadMiddleware(DownloadDispatcherMiddleware):
|
||||||
options_list = copy.deepcopy(settings.DOWNLOADVIEW_RULES)
|
options_list = copy.deepcopy(settings.DOWNLOADVIEW_RULES)
|
||||||
except AttributeError:
|
except AttributeError:
|
||||||
raise ImproperlyConfigured(
|
raise ImproperlyConfigured(
|
||||||
"SmartDownloadMiddleware requires " "settings.DOWNLOADVIEW_RULES"
|
"SmartDownloadMiddleware requires settings.DOWNLOADVIEW_RULES"
|
||||||
)
|
)
|
||||||
for key, options in enumerate(options_list):
|
for key, options in enumerate(options_list):
|
||||||
args = []
|
args = []
|
||||||
|
|
|
||||||
|
|
@ -141,5 +141,5 @@ class DeprecatedAPITestCase(django.test.SimpleTestCase):
|
||||||
if missed_warnings:
|
if missed_warnings:
|
||||||
self.fail(
|
self.fail(
|
||||||
f"No DeprecationWarning raised about following settings: "
|
f"No DeprecationWarning raised about following settings: "
|
||||||
f'{", ".join(missed_warnings)}.'
|
f"{', '.join(missed_warnings)}."
|
||||||
)
|
)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue