mirror of
https://github.com/django/django.git
synced 2025-10-24 14:16:09 +00:00
Partially reverted825f0beda8. Backport ofb30f9b131cfrom master
This commit is contained in:
committed by
Tim Graham
parent
422a403565
commit
aea0e2b9ca
@@ -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