From 708817c4891f57eee5956cb46f039dbd42f9724a Mon Sep 17 00:00:00 2001 From: Chris Meyers Date: Thu, 7 Apr 2016 09:52:30 -0400 Subject: [PATCH] remove active filter attribute --- awx/main/models/jobs.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/awx/main/models/jobs.py b/awx/main/models/jobs.py index c14f60963c..b58995edbc 100644 --- a/awx/main/models/jobs.py +++ b/awx/main/models/jobs.py @@ -1092,7 +1092,8 @@ class SystemJobTemplate(UnifiedJobTemplate, SystemJobOptions): @property def notifiers(self): - base_notifiers = Notifier.objects.filter(active=True) + # TODO: Go through RBAC instead of calling all(). Need to account for orphaned Notifiers + base_notifiers = Notifier.objects.all() error_notifiers = list(base_notifiers.filter(unifiedjobtemplate_notifiers_for_errors__in=[self])) success_notifiers = list(base_notifiers.filter(unifiedjobtemplate_notifiers_for_success__in=[self])) any_notifiers = list(base_notifiers.filter(unifiedjobtemplate_notifiers_for_any__in=[self]))