mirror of
https://github.com/django/django.git
synced 2025-10-23 21:59:11 +00:00
Partially reverted 825f0beda8.
This commit is contained in:
committed by
Tim Graham
parent
ae26e0ad2c
commit
b30f9b131c
@@ -340,9 +340,6 @@ Conditionally enabling or disabling actions
|
||||
Finally, you can conditionally enable or disable actions on a per-request
|
||||
(and hence per-user basis) by overriding :meth:`ModelAdmin.get_actions`.
|
||||
|
||||
This doesn't return any actions if the user doesn't have the "change"
|
||||
permission for the model.
|
||||
|
||||
This returns a dictionary of actions allowed. The keys are action names, and
|
||||
the values are ``(function, name, short_description)`` tuples.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user