diff --git a/django-stubs/contrib/admin/options.pyi b/django-stubs/contrib/admin/options.pyi index 346588643..892b91cb3 100644 --- a/django-stubs/contrib/admin/options.pyi +++ b/django-stubs/contrib/admin/options.pyi @@ -204,9 +204,9 @@ class ModelAdmin(BaseModelAdmin[_ModelT]): orphans: int = ..., allow_empty_first_page: bool = ..., ) -> Paginator: ... - def log_addition(self, request: HttpRequest, object: _ModelT, message: Any) -> LogEntry: ... - def log_change(self, request: HttpRequest, object: _ModelT, message: Any) -> LogEntry: ... - def log_deletion(self, request: HttpRequest, object: _ModelT, object_repr: str) -> LogEntry: ... + def log_addition(self, request: HttpRequest, obj: _ModelT, message: Any) -> LogEntry: ... + def log_change(self, request: HttpRequest, obj: _ModelT, message: Any) -> LogEntry: ... + def log_deletion(self, request: HttpRequest, obj: _ModelT, object_repr: str) -> LogEntry: ... def action_checkbox(self, obj: _ModelT) -> SafeString: ... def get_actions(self, request: HttpRequest) -> dict[str, tuple[Callable[..., str], str, str] | None]: ... def get_action_choices( diff --git a/scripts/stubtest/allowlist_todo.txt b/scripts/stubtest/allowlist_todo.txt index e6af69e58..2f295d4b1 100644 --- a/scripts/stubtest/allowlist_todo.txt +++ b/scripts/stubtest/allowlist_todo.txt @@ -6,9 +6,6 @@ django.conf.global_settings.gettext_noop django.conf.urls.url django.contrib.admin.FieldListFilter.title django.contrib.admin.ModelAdmin -django.contrib.admin.ModelAdmin.log_addition -django.contrib.admin.ModelAdmin.log_change -django.contrib.admin.ModelAdmin.log_deletion django.contrib.admin.StackedInline django.contrib.admin.TabularInline django.contrib.admin.action @@ -42,9 +39,6 @@ django.contrib.admin.options.InlineModelAdmin django.contrib.admin.options.InlineModelAdmin.model django.contrib.admin.options.InlineModelAdmin.template django.contrib.admin.options.ModelAdmin -django.contrib.admin.options.ModelAdmin.log_addition -django.contrib.admin.options.ModelAdmin.log_change -django.contrib.admin.options.ModelAdmin.log_deletion django.contrib.admin.options.StackedInline django.contrib.admin.options.TabularInline django.contrib.admin.site @@ -176,9 +170,6 @@ django.contrib.flatpages.models.FlatPage.url django.contrib.gis.admin.GISModelAdmin django.contrib.gis.admin.GISModelAdmin.gis_widget django.contrib.gis.admin.ModelAdmin -django.contrib.gis.admin.ModelAdmin.log_addition -django.contrib.gis.admin.ModelAdmin.log_change -django.contrib.gis.admin.ModelAdmin.log_deletion django.contrib.gis.admin.StackedInline django.contrib.gis.admin.TabularInline django.contrib.gis.admin.action