mirror of
https://github.com/davidhalter/django-stubs.git
synced 2025-12-20 10:51:16 +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:
@@ -154,7 +154,7 @@ class ModelAdmin(BaseModelAdmin[_ModelT]):
|
|||||||
delete_selected_confirmation_template: str = ...
|
delete_selected_confirmation_template: str = ...
|
||||||
object_history_template: str = ...
|
object_history_template: str = ...
|
||||||
popup_response_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 = ...
|
action_form: Any = ...
|
||||||
actions_on_top: bool = ...
|
actions_on_top: bool = ...
|
||||||
actions_on_bottom: bool = ...
|
actions_on_bottom: bool = ...
|
||||||
|
|||||||
Reference in New Issue
Block a user