Opened 8 years ago

Last modified 8 years ago

#26997 closed Bug

crash on empty model permissions — at Initial Version

Reported by: Сергей Owned by: nobody
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

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 https://github.com/hellpain/django_default_permissions_bug/blob/master/foo_app/models.py

This bug is caused to refactored checks in contrib.auth

Change History (1)

by Сергей, 8 years ago

Attachment: diff.txt added

bug fix + tests

Note: See TracTickets for help on using tickets.
Back to Top