mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-12-12 17:47:08 +01:00
fix pycodestyle
This commit is contained in:
parent
adfe5c123c
commit
1c0069e95e
1 changed files with 3 additions and 1 deletions
|
|
@ -13,6 +13,8 @@ class ApiVersionMiddleware:
|
|||
if request.user.is_authenticated:
|
||||
versions = settings.REST_FRAMEWORK['ALLOWED_VERSIONS']
|
||||
response['X-Api-Version'] = versions[len(versions)-1]
|
||||
response['X-Version'] = ".".join([str(_) for _ in version.__version__])
|
||||
response['X-Version'] = ".".join(
|
||||
[str(_) for _ in version.__version__]
|
||||
)
|
||||
|
||||
return response
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue