mirror of
https://github.com/1Panel-dev/MaxKB.git
synced 2025-12-26 01:33:05 +00:00
fix: correct select_one parameter default value in edit method of KnowledgeSerializer
--bug=1058784 --user=刘瑞斌 【知识库】编辑知识库,保存失败 https://www.tapd.cn/62980211/s/1731590
This commit is contained in:
parent
c2f52d0759
commit
dc960d1628
|
|
@ -353,7 +353,7 @@ class KnowledgeSerializer(serializers.Serializer):
|
|||
}
|
||||
|
||||
@transaction.atomic
|
||||
def edit(self, instance: Dict, select_one: True):
|
||||
def edit(self, instance: Dict, select_one=True):
|
||||
self.is_valid()
|
||||
knowledge = QuerySet(Knowledge).get(id=self.data.get("knowledge_id"))
|
||||
if QuerySet(Knowledge).filter(
|
||||
|
|
|
|||
Loading…
Reference in New Issue