diff --git a/knowledge_base/doctype/question/question.py b/knowledge_base/doctype/question/question.py new file mode 100644 index 0000000000..5ddee6a507 --- /dev/null +++ b/knowledge_base/doctype/question/question.py @@ -0,0 +1,8 @@ +class DocType: + def __init__(self, d, dl): + self.doc, self.doclist = d, dl + + def on_trash(self): + import webnotes + webnotes.conn.sql("delete from tabAnswer where question=%s", self.doc.name) + \ No newline at end of file