After upgrade to Django 1.10, you will get the following error:
check_models_permissions
max_builtin_permission_name_length = max(len(name) for name in builtin_permissions.values())
builtins.ValueError: max() arg is an empty sequence
The reason for this is because audit-log model's 'default_permissions': () [managers.py - line 239]. The problem can be fixed by change line 239 to:
lib/python3.5/site-packages/django/core/handlers/base.py", line 82, in load_middleware mw_instance = middleware(handler) TypeError: object() takes no parameters
After upgrade to Django 1.10, you will get the following error:
check_models_permissions max_builtin_permission_name_length = max(len(name) for name in builtin_permissions.values()) builtins.ValueError: max() arg is an empty sequence
The reason for this is because audit-log model's 'default_permissions': () [managers.py - line 239]. The problem can be fixed by change line 239 to:
result.update({'default_permissions': ('add', 'change', 'delete')})
Does this change break anything else?