Skip to content

Commit 81ccf5f

Browse files
committed
Code style updates
1 parent d9d0d03 commit 81ccf5f

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

simple_history/admin.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@
1919
except ImportError: # Django < 1.7
2020
from django.contrib.admin.util import unquote
2121

22-
USER_NATURAL_KEY = tuple(key.lower() for key in settings.AUTH_USER_MODEL.split('.', 1))
22+
USER_NATURAL_KEY = tuple(
23+
key.lower() for key in settings.AUTH_USER_MODEL.split('.', 1))
2324

2425
SIMPLE_HISTORY_EDIT = getattr(settings, 'SIMPLE_HISTORY_EDIT', False)
2526

simple_history/tests/tests/test_admin.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -429,7 +429,8 @@ def test_history_form_view_getting_history(self):
429429
'original_opts': ANY,
430430
'changelist_url': '/admin/tests/poll/',
431431
'change_url': ANY,
432-
'history_url': '/admin/tests/poll/{pk}/history/'.format(pk=poll.pk),
432+
'history_url': '/admin/tests/poll/{pk}/history/'.format(
433+
pk=poll.pk),
433434
'add': False,
434435
'change': True,
435436
'has_add_permission': admin.has_add_permission(request),

tox.ini

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ envlist =
1010

1111
[flake8]
1212
ignore = N802
13-
max-complexity = 11
13+
max-complexity = 10
1414
exclude = __init__.py,simple_history/tests/migration_test_app/migrations/*
1515

1616

0 commit comments

Comments
 (0)