Update models.py

Add Send Notifications to Lark
This commit is contained in:
iuime
2023-12-13 15:19:44 +08:00
committed by GitHub
parent fd5a5e5faa
commit 567cbce9ca
+2
View File
@@ -70,10 +70,12 @@ class InterestingLookupModel(models.Model):
class Notification(models.Model):
id = models.AutoField(primary_key=True)
send_to_slack = models.BooleanField(default=False)
send_to_lark = models.BooleanField(default=False)
send_to_discord = models.BooleanField(default=False)
send_to_telegram = models.BooleanField(default=False)
slack_hook_url = models.CharField(max_length=200, null=True, blank=True)
lark_hook_url = models.CharField(max_length=200, null=True, blank=True)
discord_hook_url = models.CharField(max_length=200, null=True, blank=True)
telegram_bot_token = models.CharField(max_length=100, null=True, blank=True)
telegram_bot_chat_id = models.CharField(max_length=100, null=True, blank=True)