Allow overriding topic

This commit is contained in:
2023-01-12 07:20:48 +00:00
parent 0b840d227b
commit 4f55ffeaf7
6 changed files with 42 additions and 9 deletions

View File

@@ -88,13 +88,15 @@ class NotificationRuleForm(RestrictedFormMixin, ModelForm):
model = NotificationRule
fields = (
"name",
"priority",
"enabled",
"data",
"priority",
"topic",
"enabled",
)
help_texts = {
"name": "The name of the rule.",
"priority": "The priority of the rule.",
"topic": "The topic to send notifications to. Leave blank for default.",
"enabled": "Whether the rule is enabled.",
"data": "The notification rule definition.",
}