mirror of
https://github.com/davidhalter/django-stubs.git
synced 2026-08-17 21:28:03 +08:00
initial commit
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
from typing import Any
|
||||
|
||||
|
||||
class LogEntry:
|
||||
def __str__(self) -> str: ...
|
||||
def get_admin_url(self) -> str: ...
|
||||
def get_change_message(self) -> str: ...
|
||||
def is_addition(self) -> bool: ...
|
||||
def is_change(self) -> bool: ...
|
||||
def is_deletion(self) -> bool: ...
|
||||
|
||||
|
||||
class LogEntryManager:
|
||||
def log_action(
|
||||
self,
|
||||
user_id: int,
|
||||
content_type_id: int,
|
||||
object_id: int,
|
||||
object_repr: str,
|
||||
action_flag: int,
|
||||
change_message: Any = ...
|
||||
) -> LogEntry: ...
|
||||
Reference in New Issue
Block a user