feat(itim): save_history method added to Service

ref: #605 #628
This commit is contained in:
2025-02-17 00:08:39 +09:30
parent 8802d396c5
commit 1b1f9840e3

View File

@ -419,6 +419,19 @@ class Service(TenancyObject):
super().save(force_insert=force_insert, force_update=force_update, using=using, update_fields=update_fields)
def save_history(self, before: dict, after: dict) -> bool:
from itim.models.service_history import ServiceHistory
history = super().save_history(
before = before,
after = after,
history_model = ServiceHistory,
)
return history
def __str__(self):
return self.name