Add field for additional (app specific) data to Notifications
This commit is contained in:
parent
017ded66e7
commit
f64441bf59
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