Skip to content

Commit

Permalink
Update django.contrib.admin.models.LogEntryManager
Browse files Browse the repository at this point in the history
Signed-off-by: SaJH <[email protected]>
  • Loading branch information
JaeHyuckSa committed Oct 27, 2024
1 parent 8de9d9a commit 3ca4a90
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
10 changes: 10 additions & 0 deletions django-stubs/contrib/admin/models.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ from typing import Any, ClassVar
from uuid import UUID

from django.db import models
from django.db.models import QuerySet
from django.db.models.base import Model

ADDITION: int
Expand All @@ -19,6 +20,15 @@ class LogEntryManager(models.Manager[LogEntry]):
action_flag: int,
change_message: Any = ...,
) -> LogEntry: ...
def log_actions(
self,
user_id: int,
queryset: QuerySet[Model],
action_flag: int,
change_message: str | list[Any] = "",
*,
single_object: bool = False,
) -> LogEntry | list[LogEntry]: ...

class LogEntry(models.Model):
action_time: models.DateTimeField
Expand Down
1 change: 0 additions & 1 deletion scripts/stubtest/allowlist_todo_django51.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
django.contrib.admin.ModelAdmin.log_deletions
django.contrib.admin.helpers.Fieldset.is_collapsible
django.contrib.admin.helpers.InlineAdminFormSet.is_collapsible
django.contrib.admin.models.LogEntryManager.log_actions
django.contrib.admin.options.ModelAdmin.log_deletions
django.contrib.auth.base_user.BaseUserManager.make_random_password
django.contrib.auth.checks.check_middleware
Expand Down

0 comments on commit 3ca4a90

Please sign in to comment.