feat: 打通通知回链与历史节点回看
This commit is contained in:
@@ -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},
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user