mirror of
https://github.com/django/django.git
synced 2025-08-03 18:38:50 +00:00
Partially reverted 825f0beda8
.
This commit is contained in:
parent
ae26e0ad2c
commit
b30f9b131c
3 changed files with 1 additions and 23 deletions
|
@ -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.
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue