Skip to content
Permalink

Comparing changes

This is a direct comparison between two commits made in this repository or its related repositories. View the default comparison for this range or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: jazzband/django-downloadview
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: d8857082bde8415bdbfee4affd373784067bbc24
Choose a base ref
..
head repository: jazzband/django-downloadview
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 5245b072ae7efdd9c1e1fb18ae243c20a59039b5
Choose a head ref
Showing with 4 additions and 4 deletions.
  1. +1 −1 .pre-commit-config.yaml
  2. +2 −2 django_downloadview/middlewares.py
  3. +1 −1 tests/api.py
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -14,7 +14,7 @@ repos:
hooks:
- id: doc8
- repo: https://github.com/adamchainz/django-upgrade
rev: 1.23.1
rev: 1.24.0
hooks:
- id: django-upgrade
args: [--target-version, "4.2"]
4 changes: 2 additions & 2 deletions django_downloadview/middlewares.py
Original file line number Diff line number Diff line change
@@ -145,7 +145,7 @@ def auto_configure_backend_factory(self):
self.backend_factory = import_member(settings.DOWNLOADVIEW_BACKEND)
except AttributeError:
raise ImproperlyConfigured(
"SmartDownloadMiddleware requires settings.DOWNLOADVIEW_BACKEND"
"SmartDownloadMiddleware requires " "settings.DOWNLOADVIEW_BACKEND"
)

def auto_configure_backend_options(self):
@@ -155,7 +155,7 @@ def auto_configure_backend_options(self):
options_list = copy.deepcopy(settings.DOWNLOADVIEW_RULES)
except AttributeError:
raise ImproperlyConfigured(
"SmartDownloadMiddleware requires settings.DOWNLOADVIEW_RULES"
"SmartDownloadMiddleware requires " "settings.DOWNLOADVIEW_RULES"
)
for key, options in enumerate(options_list):
args = []
2 changes: 1 addition & 1 deletion tests/api.py
Original file line number Diff line number Diff line change
@@ -141,5 +141,5 @@ def test_nginx_x_accel_redirect_global_settings(self):
if missed_warnings:
self.fail(
f"No DeprecationWarning raised about following settings: "
f"{', '.join(missed_warnings)}."
f'{", ".join(missed_warnings)}.'
)