30 lines
674 B
Python
30 lines
674 B
Python
|
from uuid import UUID
|
||
|
from django.contrib import admin
|
||
|
from scriptAudit.models import ScriptAuditModel
|
||
|
|
||
|
|
||
|
# @admin.register(AuditStatus)
|
||
|
# class FileAdmin(admin.ModelAdmin):
|
||
|
# list_display = (
|
||
|
# "id",
|
||
|
# "script",
|
||
|
# "script_audit_status",
|
||
|
# )
|
||
|
# list_filter = ("script_audit_status",)
|
||
|
|
||
|
# def script(self, obj: AuditStatus):
|
||
|
# return obj.script
|
||
|
|
||
|
# script.short_description = "Script"
|
||
|
|
||
|
|
||
|
@admin.register(ScriptAuditModel)
|
||
|
class ScriptAuditModelAdmin(admin.ModelAdmin):
|
||
|
list_display = (
|
||
|
"script",
|
||
|
"status",
|
||
|
"pre_audit_run",
|
||
|
"last_call",
|
||
|
"celery_id",
|
||
|
)
|