From 4b0feeeebbcad0ea1fbe0287a3d2b90ac19e964f Mon Sep 17 00:00:00 2001 From: Jon Date: Sun, 18 Aug 2024 12:57:50 +0930 Subject: [PATCH] feat(itim): Add cluster to history save ref: #244 #71 --- app/core/views/history.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/app/core/views/history.py b/app/core/views/history.py index 67a14dc48..b983a7036 100644 --- a/app/core/views/history.py +++ b/app/core/views/history.py @@ -47,6 +47,12 @@ def get_object(self): match self.kwargs['model_name']: + case 'cluster': + + from itim.models.clusters import Cluster + + self.model = Cluster + case 'configgroups': self.model = ConfigGroups