feat(project_management): save_history method added to Project State
ref: #605 #632
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user