Skip to content

Commit 25da96c

Browse files
authored
Updated the "LogEntryManager" class' "log_action" and "log_actions" methods (#2708)
1 parent 0b75883 commit 25da96c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

django-stubs/contrib/admin/models.pyi

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ class LogEntryManager(models.Manager[LogEntry]):
1515
@deprecated("log_action() is deprecated and will be removed in Django 6.0. Use log_action_new() instead.")
1616
def log_action(
1717
self,
18-
user_id: int,
18+
user_id: int | str | UUID,
1919
content_type_id: int,
2020
object_id: int | str | UUID,
2121
object_repr: str,
@@ -24,7 +24,7 @@ class LogEntryManager(models.Manager[LogEntry]):
2424
) -> LogEntry: ...
2525
def log_actions(
2626
self,
27-
user_id: int,
27+
user_id: int | str | UUID,
2828
queryset: QuerySet[Model],
2929
action_flag: int,
3030
change_message: str | list[Any] = "",

0 commit comments

Comments
 (0)