From 050ed8a200a1ea5d53eb0e9f18c833d5e008b26e Mon Sep 17 00:00:00 2001 From: Matthew Jones Date: Tue, 23 Feb 2016 12:18:31 -0500 Subject: [PATCH] Proper type for in check Still an __in for when we need to add another trigger obj --- awx/main/models/inventory.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/awx/main/models/inventory.py b/awx/main/models/inventory.py index b0acf0a90b..fd6dfbff76 100644 --- a/awx/main/models/inventory.py +++ b/awx/main/models/inventory.py @@ -1185,9 +1185,9 @@ class InventorySource(UnifiedJobTemplate, InventorySourceOptions): def notifiers(self): # Return all notifiers defined on the Project, and on the Organization for each trigger type base_notifiers = Notifier.objects.filter(active=True) - error_notifiers = list(base_notifiers.filter(organization_notifiers_for_errors__in=self)) - success_notifiers = list(base_notifiers.filter(organization_notifiers_for_success__in=self)) - any_notifiers = list(base_notifiers.filter(organization_notifiers_for_any__in=self)) + error_notifiers = list(base_notifiers.filter(organization_notifiers_for_errors__in=[self])) + success_notifiers = list(base_notifiers.filter(organization_notifiers_for_success__in=[self])) + any_notifiers = list(base_notifiers.filter(organization_notifiers_for_any__in=[self])) return dict(error=error_notifiers, success=success_notifiers, any=any_notifiers) def clean_source(self):