#26997 closed Bug (fixed)
Checks framework crash on empty model Meta.default_permissions
Reported by: | Сергей | Owned by: | Sergey Yurchenko |
---|---|---|---|
Component: | contrib.auth | Version: | 1.10 |
Severity: | Release blocker | Keywords: | permissions |
Cc: | Triage Stage: | Accepted | |
Has patch: | yes | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | yes | UI/UX: | no |
Description (last modified by )
While trying to port project to django 1.10 I found an error.
If Meta of model has default_permissions = () django crashes on runserver, makemigrations and all other commands.
Test project can is located at
https://github.com/hellpain/django_default_permissions_bug/
Example of corrupted model:
https://github.com/hellpain/django_default_permissions_bug/blob/master/foo_app/models.py
This bug is caused to refactored checks in contrib.auth
PR to fix bug: https://github.com/django/django/pull/7007
Attachments (1)
Change History (10)
by , 8 years ago
comment:1 by , 8 years ago
Severity: | Normal → Release blocker |
---|---|
Triage Stage: | Unreviewed → Accepted |
Could you send a pull request to master and include a release note in docs/releases/1.10.1.txt?
comment:3 by , 8 years ago
Description: | modified (diff) |
---|
comment:5 by , 8 years ago
Owner: | changed from | to
---|---|
Status: | new → assigned |
comment:6 by , 8 years ago
Owner: | changed from | to
---|
comment:8 by , 8 years ago
Summary: | crash on empty model permissions → Checks framework crash on empty model Meta.default_permissions |
---|
bug fix + tests