mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-09-18 16:39:28 +00:00
fix: 修改 job 审计日志
This commit is contained in:
@@ -64,5 +64,8 @@ class Migration(migrations.Migration):
|
||||
name='material',
|
||||
field=models.CharField(blank=True, default='', max_length=1024, null=True, verbose_name='Material'),
|
||||
),
|
||||
migrations.DeleteModel(
|
||||
name='JobAuditLog',
|
||||
),
|
||||
migrations.RunPython(compatible),
|
||||
]
|
||||
|
@@ -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