perf: 优化Activity日志

This commit is contained in:
jiangweidong
2023-02-07 08:52:48 +08:00
parent bf867f8c95
commit 90fdaca955
26 changed files with 239 additions and 113 deletions

View File

@@ -35,6 +35,13 @@ class LoginTypeChoices(TextChoices):
unknown = "U", _("Unknown")
class ActivityChoices(TextChoices):
operate_log = 'O', _('Operate log')
session_log = 'S', _('Session log')
login_log = 'L', _('Login log')
task = 'T', _('Task')
class MFAChoices(IntegerChoices):
disabled = 0, _("Disabled")
enabled = 1, _("Enabled")