Add field for additional (app specific) data to Notifications
This commit is contained in:
parent
1356c59d31
commit
2cbd3960d7
1 changed files with 1 additions and 0 deletions
|
@ -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():
|
||||
|
|
Loading…
Reference in a new issue