mirror of
https://github.com/jazzband/django-axes.git
synced 2026-03-16 22:30:23 +00:00
Update syntax to be compliant with new black version
This commit is contained in:
parent
92f038e4af
commit
dbd16dd5b0
1 changed files with 5 additions and 3 deletions
|
|
@ -41,9 +41,11 @@ class AppConfig(apps.AppConfig):
|
||||||
else:
|
else:
|
||||||
mode = "blocking by " + " or ".join(
|
mode = "blocking by " + " or ".join(
|
||||||
[
|
[
|
||||||
param
|
(
|
||||||
if isinstance(param, str)
|
param
|
||||||
else "combination of " + " and ".join(param)
|
if isinstance(param, str)
|
||||||
|
else "combination of " + " and ".join(param)
|
||||||
|
)
|
||||||
for param in settings.AXES_LOCKOUT_PARAMETERS
|
for param in settings.AXES_LOCKOUT_PARAMETERS
|
||||||
]
|
]
|
||||||
)
|
)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue