mirror of
https://github.com/yogeshojha/rengine.git
synced 2026-09-27 12:14:53 +02:00
Update models.py
Add Send Notifications to Lark
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user