优化脚本

This commit is contained in:
Azmat@qq.com
2026-08-28 14:45:38 +08:00
parent 849b14a0f6
commit c0a0b9603b
37 changed files with 541 additions and 1893 deletions
+2 -1
View File
@@ -329,7 +329,8 @@ def admin_quality_word_detail(request, word_id):
@permission_classes([IsPlatformAdmin])
def admin_prompt_templates(request):
"""列视频线 6 条提示词模板(固定 key,数量小不分页,按 key 排序)。"""
qs = PromptTemplate.objects.all().order_by("key")
# 故事板已下线,分镜图提示词不再出现在后台可编辑列表里(历史行留在库里不动)
qs = PromptTemplate.objects.exclude(key=PromptTemplate.Key.STORYBOARD_FRAME).order_by("key")
return Response(PromptTemplateSerializer(qs, many=True).data)