Fixed #19536 -- Included object-tools when ModelAdmin.has_add_permission() is False.

This commit is contained in:
Nick Sandford 2015-11-07 11:31:06 +00:00 committed by Tim Graham
parent d9e150b311
commit ff19df9c2d
4 changed files with 27 additions and 5 deletions

View file

@ -47,6 +47,10 @@ Minor features
classes on inline fieldsets. Inlines with a ``collapse`` class will be
initially collapsed and their header will have a small "show" link.
* If a user doesn't have the add permission, the ``object-tools`` block on a
model's changelist will now be rendered (without the add button, of course).
This makes it easier to add custom tools in this case.
:mod:`django.contrib.admindocs`
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^