Now no error 500 raised, but the mail test not works correctly

remotes/origin/enhancement/email-actions
Jesús Espino 2013-10-24 15:26:17 +02:00
parent a5c39e64d5
commit b6b0d7b00e
1 changed files with 2 additions and 2 deletions

View File

@ -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: