mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-09-25 14:50:24 +00:00
fix: 修改 job 审计日志
This commit is contained in:
@@ -9,7 +9,7 @@ from django.db import models
|
||||
from django.utils import timezone
|
||||
from django.utils.translation import gettext_lazy as _
|
||||
|
||||
__all__ = ["Job", "JobExecution", "JobAuditLog"]
|
||||
__all__ = ["Job", "JobExecution"]
|
||||
|
||||
from simple_history.models import HistoricalRecords
|
||||
|
||||
@@ -362,11 +362,3 @@ class JobExecution(JMSOrgBaseModel):
|
||||
ordering = ['-date_created']
|
||||
|
||||
|
||||
class JobAuditLog(JobExecution):
|
||||
@property
|
||||
def creator_name(self):
|
||||
return self.creator.name
|
||||
|
||||
class Meta:
|
||||
proxy = True
|
||||
verbose_name = _("Job audit log")
|
||||
|
Reference in New Issue
Block a user