feat: 持久化资料包导出记录与列表摘要
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
from django.contrib import admin
|
||||
|
||||
from .models import UploadedDocument
|
||||
from .models import ExportedDocument, UploadedDocument
|
||||
|
||||
|
||||
@admin.register(UploadedDocument)
|
||||
@@ -9,3 +9,19 @@ class UploadedDocumentAdmin(admin.ModelAdmin):
|
||||
list_display = ("id", "original_name", "scenario_id", "file_type", "status", "created_at")
|
||||
list_filter = ("status", "scenario_id", "file_type")
|
||||
search_fields = ("original_name", "scenario_id")
|
||||
|
||||
|
||||
@admin.register(ExportedDocument)
|
||||
class ExportedDocumentAdmin(admin.ModelAdmin):
|
||||
"""管理导出记录,便于按批次、会话和产品回看导出产物。"""
|
||||
list_display = (
|
||||
"id",
|
||||
"file_name",
|
||||
"batch",
|
||||
"conversation_id",
|
||||
"product_name",
|
||||
"export_mode",
|
||||
"created_at",
|
||||
)
|
||||
list_filter = ("export_mode", "output_type", "template_name")
|
||||
search_fields = ("file_name", "batch__batch_id", "conversation_id", "product_name")
|
||||
|
||||
Reference in New Issue
Block a user