mirror of
https://github.com/davidhalter/django-stubs.git
synced 2026-10-25 15:17:28 +08:00
admin: Allow ModelAdmin.actions to contain str (#425)
Strings are allowed in ModelAdmin.actions when they refer to a method on the ModelAdmin subclass.
This commit is contained in:
1 parent
92ef5d9d95
commit
19c73a106d
2 files changed
+7
-3
No files matched your search
@@ -135,7 +135,7 @@ class ModelAdmin(BaseModelAdmin):
|
||||
delete_selected_confirmation_template: str = ...
|
||||
object_history_template: str = ...
|
||||
popup_response_template: str = ...
|
||||
actions: Sequence[Callable[[ModelAdmin, HttpRequest, QuerySet], None]] = ...
|
||||
actions: 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