aboutsummaryrefslogtreecommitdiffstats
path: root/src/notifier/models.py
diff options
context:
space:
mode:
authorParker Berberian <pberberian@iol.unh.edu>2019-02-25 17:04:57 +0000
committerGerrit Code Review <gerrit@opnfv.org>2019-02-25 17:04:57 +0000
commite858a658aa9594949ec3b357253b34c7489d623d (patch)
tree09acd4000e3de9c7a064a267dffe2986b3e4af41 /src/notifier/models.py
parentb06649b237636f8fd29947094e9fc44472b88d18 (diff)
parentde9a0666a8856e42d227754f6dc3915f6928af4c (diff)
Merge "Update Inbox Featureset"
Diffstat (limited to 'src/notifier/models.py')
-rw-r--r--src/notifier/models.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/notifier/models.py b/src/notifier/models.py
index 5e7c60e..49189e8 100644
--- a/src/notifier/models.py
+++ b/src/notifier/models.py
@@ -14,7 +14,9 @@ from account.models import UserProfile
class Notification(models.Model):
title = models.CharField(max_length=150)
content = models.TextField()
- recipients = models.ManyToManyField(UserProfile)
+ recipients = models.ManyToManyField(UserProfile, related_name='notifications')
+ is_html = models.BooleanField(default=True)
+ read_by = models.ManyToManyField(UserProfile, related_name='read_notifications')
def __str__(self):
return self.title