Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Django 1.10 model check issue #40

Open
wkang0 opened this issue Aug 12, 2016 · 1 comment
Open

Django 1.10 model check issue #40

wkang0 opened this issue Aug 12, 2016 · 1 comment

Comments

@wkang0
Copy link
Contributor

wkang0 commented Aug 12, 2016

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?

@rg3915
Copy link

rg3915 commented Sep 14, 2016

In Django 1.10 show this error:

lib/python3.5/site-packages/django/core/handlers/base.py", line 82, in load_middleware mw_instance = middleware(handler) TypeError: object() takes no parameters

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants