Add original status

This commit is contained in:
Mark Veidemanis 2023-02-14 07:20:47 +00:00
parent 6385339b7b
commit 507708574c
Signed by: m
GPG Key ID: 5ACFCEED46C0904F
1 changed files with 2 additions and 0 deletions

View File

@ -337,6 +337,7 @@ class AssetRuleForm(RestrictedFormMixin, ModelForm):
def __init__(self, *args, **kwargs): def __init__(self, *args, **kwargs):
super(AssetRuleForm, self).__init__(*args, **kwargs) super(AssetRuleForm, self).__init__(*args, **kwargs)
self.fields["value"].disabled = True self.fields["value"].disabled = True
self.fields["original_status"].disabled = True
self.fields["aggregation"].disabled = True self.fields["aggregation"].disabled = True
class Meta: class Meta:
@ -345,6 +346,7 @@ class AssetRuleForm(RestrictedFormMixin, ModelForm):
"asset", "asset",
"aggregation", "aggregation",
"value", "value",
"original_status",
"status", "status",
"trigger_below", "trigger_below",
"trigger_above", "trigger_above",