summaryrefslogtreecommitdiffstats
path: root/dashboard/src/notifier/models.py
diff options
context:
space:
mode:
authorSawyer Bergeron <sawyerbergeron@gmail.com>2019-01-28 13:07:05 -0500
committerSawyer Bergeron <sawyerbergeron@gmail.com>2019-02-25 11:57:22 -0500
commit3503a247d63e5cd116263d63acddec9842eb717c (patch)
tree1791d9180c4eeaad90bf786aedbd6c16de042865 /dashboard/src/notifier/models.py
parent879ebf85275e5f8942eb1a1e30d76cbee2a70715 (diff)
Update Inbox Featureset
Inbox now supports marking unread, marking for deletion, and has a new UI Change-Id: Ia684056f70ecca31bbd71634f4d1d5415f7e5428 Signed-off-by: Sawyer Bergeron <sawyerbergeron@gmail.com>
Diffstat (limited to 'dashboard/src/notifier/models.py')
-rw-r--r--dashboard/src/notifier/models.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/dashboard/src/notifier/models.py b/dashboard/src/notifier/models.py
index 5e7c60e..49189e8 100644
--- a/dashboard/src/notifier/models.py
+++ b/dashboard/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