#28517: admin does not check if a model has default_permissions before raising
PermissionDenied
-------------------------------------+-------------------------------------
Reporter: Paulo | Owner: nobody
Type: | Status: new
Cleanup/optimization |
Component: contrib.admin | Version: 1.11
Severity: Normal | Resolution:
Keywords: | Triage Stage:
| Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Tim Graham):
* type: Uncategorized => Cleanup/optimization
* component: Uncategorized => contrib.admin
Comment:
The documentation for `Options.default_permissions` says, "You may
customize this list, for example, by setting this to an empty list if your
app doesn’t require any of the default permissions." Since the admin app
requires those permissions, it seems that setting `default_permissions` to
an empty list would be invalid for this case.
Do you have a use case and proposal for changing the behavior?
--
Ticket URL: <https://code.djangoproject.com/ticket/28517#comment:1>
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.91d896736802018fb71ef32cd0a9e833%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.