Add original status
This commit is contained in:
parent
6385339b7b
commit
507708574c
|
@ -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",
|
||||||
|
|
Loading…
Reference in New Issue