From 507708574c6cc29a9a4247502aa80fff2bbee8ae Mon Sep 17 00:00:00 2001 From: Mark Veidemanis Date: Tue, 14 Feb 2023 07:20:47 +0000 Subject: [PATCH] Add original status --- core/forms.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/core/forms.py b/core/forms.py index 418b6b4..1b93fb5 100644 --- a/core/forms.py +++ b/core/forms.py @@ -337,6 +337,7 @@ class AssetRuleForm(RestrictedFormMixin, ModelForm): def __init__(self, *args, **kwargs): super(AssetRuleForm, self).__init__(*args, **kwargs) self.fields["value"].disabled = True + self.fields["original_status"].disabled = True self.fields["aggregation"].disabled = True class Meta: @@ -345,6 +346,7 @@ class AssetRuleForm(RestrictedFormMixin, ModelForm): "asset", "aggregation", "value", + "original_status", "status", "trigger_below", "trigger_above",