feat: 打通通知回链与历史节点回看

This commit is contained in:
2026-06-04 01:15:44 +08:00
parent 11caa6c908
commit 72409e9652
5 changed files with 63 additions and 4 deletions

View File

@@ -1,6 +1,7 @@
from django.shortcuts import get_object_or_404, render
from .models import AgentAuditLog, NotificationRecord
from apps.chat.models import Conversation
def log_list(request):
@@ -31,8 +32,9 @@ def log_detail(request, log_id: int):
conversation_id=audit_log.conversation_id,
batch_id=audit_log.batch_id,
)
conversation = Conversation.objects.filter(conversation_id=audit_log.conversation_id).first()
return render(
request,
"audit/log_detail.html",
{"log": audit_log, "notifications": notifications},
{"log": audit_log, "notifications": notifications, "conversation": conversation},
)