Opened 4 years ago

Last modified 4 years ago

#26997 closed Bug

crash on empty model permissions — at Version 3

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 (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
Example of corrupted model:

This bug is caused to refactored checks in contrib.auth

PR to fix bug:

Change History (4)

Changed 4 years ago by Сергей

Attachment: diff.txt added

bug fix + tests

comment:1 Changed 4 years ago by Tim Graham

Severity: NormalRelease blocker
Triage Stage: UnreviewedAccepted

Could you send a pull request to master and include a release note in docs/releases/1.10.1.txt?

comment:2 Changed 4 years ago by Simon Charette

comment:3 Changed 4 years ago by Сергей

Description: modified (diff)
Note: See TracTickets for help on using tickets.
Back to Top