#17498: Add a way to register a model with the admin but prevent it from
appearing
on the app index page
-------------------------------+------------------------------------
Reporter: kace | Owner: (none)
Type: New feature | Status: new
Component: contrib.admin | Version:
Severity: Normal | Resolution:
Keywords: admin | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 1
Easy pickings: 0 | UI/UX: 0
-------------------------------+------------------------------------
Comment (by Tim McCurrach):
This is already solved by `has_module_permission`. From the docs:
"Should return True if displaying the module on the admin index page and
accessing the module’s index page is permitted, False otherwise. Uses
User.has_module_perms() by default. Overriding it does not restrict access
to the view, add, change, or delete views..."
Unless there's something I'm missing, this ticket can be closed.
--
Ticket URL: <https://code.djangoproject.com/ticket/17498#comment:14>
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 view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/062.144005e8cb210d737c034273063bd06e%40djangoproject.com.