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

@@ -146,6 +146,7 @@ class NotificationRule(models.Model):
user = models.ForeignKey(User, on_delete=models.CASCADE)
name = models.CharField(max_length=255)
priority = models.IntegerField(choices=PRIORITY_CHOICES, default=1)
topic = models.CharField(max_length=255, null=True, blank=True)
enabled = models.BooleanField(default=True)
data = models.TextField()