mirror of
https://github.com/davidhalter/django-stubs.git
synced 2026-10-19 12:31:30 +08:00
Allow ModelAdmin.actions to be set to None. (#560)
`None` is an allowed value to disable all actions for a particular `ModelAdmin`.
This commit is contained in:
1 parent
a1334a70b9
commit
8f9e77ce39
1 file changed
+1
-1
@@ -154,7 +154,7 @@ class ModelAdmin(BaseModelAdmin[_ModelT]):
|
||||
delete_selected_confirmation_template: str = ...
|
||||
object_history_template: str = ...
|
||||
popup_response_template: str = ...
|
||||
actions: Sequence[Union[Callable[[ModelAdmin, HttpRequest, QuerySet], None], str]] = ...
|
||||
actions: Optional[Sequence[Union[Callable[[ModelAdmin, HttpRequest, QuerySet], None], str]]] = ...
|
||||
action_form: Any = ...
|
||||
actions_on_top: bool = ...
|
||||
actions_on_bottom: bool = ...
|
||||
|
||||
Reference in new issue
Block a user