feat(core): save_history method added to Ticket Category
ref: #605 #614
This commit is contained in:
@ -169,3 +169,17 @@ class TicketCategory(TicketCategoryCommonFields):
|
|||||||
def __str__(self):
|
def __str__(self):
|
||||||
|
|
||||||
return self.recusive_name
|
return self.recusive_name
|
||||||
|
|
||||||
|
|
||||||
|
def save_history(self, before: dict, after: dict) -> bool:
|
||||||
|
|
||||||
|
from core.models.ticket.ticket_category_history import TicketCategoryHistory
|
||||||
|
|
||||||
|
history = super().save_history(
|
||||||
|
before = before,
|
||||||
|
after = after,
|
||||||
|
history_model = TicketCategoryHistory
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
|
return history
|
||||||
|
Reference in New Issue
Block a user