30 lines
668 B
Python
Executable File
30 lines
668 B
Python
Executable File
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",
|
|
"results",
|
|
"last_call",
|
|
"error_msg",
|
|
)
|