From 4b2be4855bca6d6bffdf2cfc7d465b2e69c01a71 Mon Sep 17 00:00:00 2001 From: Jon Date: Sun, 16 Feb 2025 03:45:23 +0930 Subject: [PATCH] docs(development): History model update ref: #601 #605 --- .../centurion_erp/development/core/model_history.md | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/docs/projects/centurion_erp/development/core/model_history.md b/docs/projects/centurion_erp/development/core/model_history.md index f6a97454..dacfba0e 100644 --- a/docs/projects/centurion_erp/development/core/model_history.md +++ b/docs/projects/centurion_erp/development/core/model_history.md @@ -15,7 +15,14 @@ Most of the work has already been done, all that is required to add history to a - Model -- Function `` added to audit model +- Function `get_serialized_model` added to audit model _(parent model only)_ + +- Function `get_serialized_child_model` added to audit model _(child model only)_ + +- _(child model only)_ model name added to list attribute in `core.models.model_history.ModelHistory.child_history_models` + + !!! tip + To obtain the model name you can use the api at endpoint `api/v2/base/content_type` and then filtering by app_name and model. The value in the model field is what's required. ### Model