feat(project_management): save_history method added to Project State

ref: #605 #632
This commit is contained in:
2025-02-17 00:28:06 +09:30
parent eb137c7ae3
commit 6cd5698f6e

View File

@ -118,3 +118,16 @@ class ProjectState(ProjectStateCommonFields):
def __str__(self):
return self.name
def save_history(self, before: dict, after: dict) -> bool:
from project_management.models.project_state_history import ProjectStateHistory
history = super().save_history(
before = before,
after = after,
history_model = ProjectStateHistory,
)
return history