#26997: crash on empty model permissions
---------------------------------+------------------------------------
     Reporter:  hellpain         |                    Owner:  nobody
         Type:  Bug              |                   Status:  new
    Component:  contrib.auth     |                  Version:  1.10
     Severity:  Release blocker  |               Resolution:
     Keywords:  permissions      |             Triage Stage:  Accepted
    Has patch:  1                |      Needs documentation:  0
  Needs tests:  0                |  Patch needs improvement:  0
Easy pickings:  1                |                    UI/UX:  0
---------------------------------+------------------------------------
Description changed by hellpain:

Old 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

New 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 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]

--

--
Ticket URL: <https://code.djangoproject.com/ticket/26997#comment:3>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/066.f5ebd352a8401a56a42030b048b844b1%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to