diff options
author | nishanth | 2010-02-26 18:34:30 +0530 |
---|---|---|
committer | nishanth | 2010-02-26 18:34:30 +0530 |
commit | d784c93b2fc7332d0e54e5a8039e0692f78d7a35 (patch) | |
tree | 4bd2dccc4856197c67bd8c073f114d4747911d76 /taskapp/models.py | |
parent | 92b98e2cc21315f4d13621744c8797803c4a3c34 (diff) | |
download | pytask-d784c93b2fc7332d0e54e5a8039e0692f78d7a35.tar.gz pytask-d784c93b2fc7332d0e54e5a8039e0692f78d7a35.tar.bz2 pytask-d784c93b2fc7332d0e54e5a8039e0692f78d7a35.zip |
now notification depends on id and not pos.
Diffstat (limited to 'taskapp/models.py')
-rw-r--r-- | taskapp/models.py | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/taskapp/models.py b/taskapp/models.py index cd060a8..aa75bc8 100644 --- a/taskapp/models.py +++ b/taskapp/models.py @@ -155,12 +155,15 @@ class Request(models.Model): class Notification(models.Model): - to = models.ManyToManyField(User, related_name = "%(class)s_to", blank = False) - is_read = models.BooleanField(default = False) - sent_date = models.DateTimeField() + sent_to = models.ManyToManyField(User, related_name = "%(class)s_sent_to", blank = False) + sent_from = models.ManyToManyField(User, related_name = "%(class)s_sent_from", blank = True) + sub = models.CharField(max_length = 100) message = models.TextField() - deleted = models.BooleanField(default = False) + + sent_date = models.DateTimeField() + is_read = models.BooleanField(default = False) + is_deleted = models.BooleanField(default = False) tagging.register(Profile) tagging.register(Task) |