38775-vm/core/admin.py
2026-02-26 00:24:17 +00:00

17 lines
641 B
Python

from django.contrib import admin
from .models import MCPToolRequest, HumanResponse, SlackSettings
@admin.register(SlackSettings)
class SlackSettingsAdmin(admin.ModelAdmin):
list_display = ('__str__', 'updated_at')
@admin.register(MCPToolRequest)
class MCPToolRequestAdmin(admin.ModelAdmin):
list_display = ('id', 'tool_name', 'status', 'created_at')
list_filter = ('status', 'tool_name')
readonly_fields = ('id', 'created_at', 'updated_at')
@admin.register(HumanResponse)
class HumanResponseAdmin(admin.ModelAdmin):
list_display = ('id', 'request', 'user_name', 'created_at')
readonly_fields = ('id', 'created_at')