feat(assistance): save_history method added to Knowledge base
ref: #605 #610
This commit is contained in:
@ -327,3 +327,17 @@ class KnowledgeBase(TenancyObject):
|
||||
def __str__(self):
|
||||
|
||||
return self.title
|
||||
|
||||
|
||||
def save_history(self, before: dict, after: dict) -> bool:
|
||||
|
||||
from assistance.models.knowledge_base_history import KnowledgeBaseHistory
|
||||
|
||||
history = super().save_history(
|
||||
before = before,
|
||||
after = after,
|
||||
history_model = KnowledgeBaseHistory,
|
||||
)
|
||||
|
||||
|
||||
return history
|
||||
|
Reference in New Issue
Block a user