Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-04-25 08:29:10

0001 from django.contrib import admin
0002 from .models import SystemAgent
0003 from .workflow_models import WorkflowDefinition, WorkflowExecution
0004 
0005 @admin.register(SystemAgent)
0006 class SystemAgentAdmin(admin.ModelAdmin):
0007     list_display = ('instance_name', 'agent_type', 'status', 'last_heartbeat', 'agent_url')
0008     list_filter = ('status', 'agent_type')
0009     search_fields = ('instance_name', 'agent_type', 'agent_url')
0010 
0011 
0012 @admin.register(WorkflowDefinition)
0013 class WorkflowDefinitionAdmin(admin.ModelAdmin):
0014     list_display = ('workflow_name', 'version', 'workflow_type', 'created_by', 'created_at')
0015     list_filter = ('workflow_type', 'created_by')
0016     search_fields = ('workflow_name', 'workflow_type', 'created_by')
0017     readonly_fields = ('created_at', 'updated_at')
0018 
0019 
0020 @admin.register(WorkflowExecution)
0021 class WorkflowExecutionAdmin(admin.ModelAdmin):
0022     list_display = ('execution_id', 'workflow_definition', 'status', 'executed_by', 'start_time')
0023     list_filter = ('status', 'executed_by')
0024     search_fields = ('execution_id', 'executed_by')
0025     readonly_fields = ('start_time', 'end_time')