@ -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
|
||||
|
Reference in New Issue
Block a user