diff --git a/django-stubs/contrib/admin/options.pyi b/django-stubs/contrib/admin/options.pyi index 76ac20f0d..4a0e3b28f 100644 --- a/django-stubs/contrib/admin/options.pyi +++ b/django-stubs/contrib/admin/options.pyi @@ -265,7 +265,7 @@ class ModelAdmin(BaseModelAdmin[_ModelT]): def changelist_view(self, request: HttpRequest, extra_context: dict[str, Any] | None = ...) -> HttpResponse: ... def get_deleted_objects( self, objs: Sequence[_ModelT] | QuerySet[_ModelT], request: HttpRequest - ) -> tuple[list[Model], dict[str, int], set[str], list[str]]: ... + ) -> tuple[list[str], dict[str, int], set[str], list[str]]: ... def delete_view( self, request: HttpRequest, object_id: str, extra_context: dict[str, Any] | None = ... ) -> HttpResponse: ... diff --git a/django-stubs/contrib/admin/utils.pyi b/django-stubs/contrib/admin/utils.pyi index b5aaa4641..7f76bd00f 100644 --- a/django-stubs/contrib/admin/utils.pyi +++ b/django-stubs/contrib/admin/utils.pyi @@ -27,7 +27,7 @@ def flatten(fields: Any) -> list[Callable | str]: ... def flatten_fieldsets(fieldsets: Any) -> list[Callable | str]: ... def get_deleted_objects( objs: Sequence[Model | None] | QuerySet[Model], request: HttpRequest, admin_site: AdminSite -) -> tuple[list[Model], dict[str, int], set[str], list[str]]: ... +) -> tuple[list[str], dict[str, int], set[str], list[str]]: ... class NestedObjects(Collector): data: dict[type[Model], set[Model] | list[Model]]