feat: implement t-604 keyword prompt moderation

This commit is contained in:
QiuSW
2026-07-06 14:57:25 +08:00
parent c89cb4cf28
commit ca0ffb8dbe
24 changed files with 787 additions and 10 deletions
+20
View File
@@ -0,0 +1,20 @@
from __future__ import annotations
from django.contrib import admin
from .models import SensitiveWord
@admin.register(SensitiveWord)
class SensitiveWordAdmin(admin.ModelAdmin):
list_display = (
"word",
"normalized_word",
"category",
"action",
"is_active",
"updated_at",
)
list_filter = ("category", "action", "is_active")
search_fields = ("word", "normalized_word", "category")
readonly_fields = ("normalized_word", "created_at", "updated_at")