From b6b0d7b00e0b8412a3c2f66cfb75ab49fa9178a9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jes=C3=BAs=20Espino?= Date: Thu, 24 Oct 2013 15:26:17 +0200 Subject: [PATCH] Now no error 500 raised, but the mail test not works correctly --- greenmine/base/notifications/models.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/greenmine/base/notifications/models.py b/greenmine/base/notifications/models.py index 2cf05a52..fecc17c0 100644 --- a/greenmine/base/notifications/models.py +++ b/greenmine/base/notifications/models.py @@ -20,7 +20,7 @@ class WatcherMixin(models.Model): default="all_owned_projects", choices=NOTIFY_LEVEL_CHOICES, verbose_name=_(u"notify level")) - notify_changes_by_me = models.BooleanField(blank=True, default=False, + notify_changes_by_me = models.NullBooleanField(null=True, blank=True, default=False, verbose_name=_(u"notify changes by me")) class Meta: @@ -101,7 +101,7 @@ class WatchedMixin(models.Model): (project, project_owner) = watchers_by_role.get("project_owner", (None, None)) if project_owner \ and project_owner.allow_notify_project(project) \ - and project_owner.allow_notify_by_me(self._changer): + and project_owner.allow_notify_by_me(changer): watchers_to_notify.add(project_owner) if changer.notify_changes_by_me: