From d54ed282e9fe7dfe3322629169bd1bede3c4aba5 Mon Sep 17 00:00:00 2001 From: Adam Taylor Date: Tue, 10 Jun 2025 08:39:24 -0600 Subject: [PATCH] Updated the "LogEntryManager" class' "log_action" and "log_actions" methods --- django-stubs/contrib/admin/models.pyi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/django-stubs/contrib/admin/models.pyi b/django-stubs/contrib/admin/models.pyi index 19babb7a4..56c9e2926 100644 --- a/django-stubs/contrib/admin/models.pyi +++ b/django-stubs/contrib/admin/models.pyi @@ -15,7 +15,7 @@ class LogEntryManager(models.Manager[LogEntry]): @deprecated("log_action() is deprecated and will be removed in Django 6.0. Use log_action_new() instead.") def log_action( self, - user_id: int, + user_id: int | str | UUID, content_type_id: int, object_id: int | str | UUID, object_repr: str, @@ -24,7 +24,7 @@ class LogEntryManager(models.Manager[LogEntry]): ) -> LogEntry: ... def log_actions( self, - user_id: int, + user_id: int | str | UUID, queryset: QuerySet[Model], action_flag: int, change_message: str | list[Any] = "",