Add field for additional (app specific) data to Notifications

This commit is contained in:
Kumi 2021-01-06 18:28:44 +01:00
parent 017ded66e7
commit f64441bf59

View file

@ -9,6 +9,7 @@ class Notification(models.Model):
content = models.TextField()
recipient = models.ForeignKey(get_user_model(), models.CASCADE)
app = models.CharField(max_length=64, null=True, blank=True)
data = model.CharField(max_length=128, null=True, blank=True)
def send(self):
for dispatcher in self.notificationdispatcher_set.all():