feat(settings): save_history method added to App Settings

ref: #605 #642
This commit is contained in:
2025-02-20 22:33:06 +09:30
parent 701608b3ed
commit 4ea29dedb9

View File

@ -169,3 +169,17 @@ class AppSettings(AppSettingsCommonFields, SaveHistory):
'software_categories_is_global',
'global_organization',
]
def save_history(self, before: dict, after: dict) -> bool:
from settings.models.app_settings_history import AppSettingsHistory
history = super().save_history(
before = before,
after = after,
history_model = AppSettingsHistory,
)
return history