mirror of
https://github.com/django/django.git
synced 2025-11-01 04:17:59 +00:00
Fixed #29917 -- Stopped collecting ModelAdmin.actions from base ModelAdmins.
This commit is contained in:
parent
a375e911ef
commit
f9ff1df1da
4 changed files with 46 additions and 11 deletions
|
|
@ -343,10 +343,8 @@ Conditionally enabling or disabling actions
|
|||
This returns a dictionary of actions allowed. The keys are action names, and
|
||||
the values are ``(function, name, short_description)`` tuples.
|
||||
|
||||
Most of the time you'll use this method to conditionally remove actions from
|
||||
the list gathered by the superclass. For example, if I only wanted users
|
||||
whose names begin with 'J' to be able to delete objects in bulk, I could do
|
||||
the following::
|
||||
For example, if you only want users whose names begin with 'J' to be able
|
||||
to delete objects in bulk::
|
||||
|
||||
class MyModelAdmin(admin.ModelAdmin):
|
||||
...
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue