use constant

This commit is contained in:
wh1te909
2024-06-19 04:20:07 +00:00
parent af2fc15964
commit 6a23d63266

View File

@@ -749,7 +749,9 @@ class AlertTemplate(BaseAuditModel):
is_active = models.BooleanField(default=True)
action_type = models.CharField(
max_length=10, choices=AlertTemplateActionType.choices, default="script"
max_length=10,
choices=AlertTemplateActionType.choices,
default=AlertTemplateActionType.SCRIPT,
)
action = models.ForeignKey(
"scripts.Script",