1
0
mirror of https://github.com/ansible/awx.git synced 2024-10-31 15:21:13 +03:00

M2M fix for project activity stream

This commit is contained in:
AlanCoding 2016-07-06 17:22:13 -04:00
parent b6ec87f18a
commit 25c177cdcd

View File

@ -1040,7 +1040,7 @@ class ProjectActivityStreamList(SubListAPIView):
return qs
elif parent.credential is None:
return qs.filter(project=parent)
return qs.filter(Q(project=parent) | Q(credential__in=parent.credential))
return qs.filter(Q(project=parent) | Q(credential=parent.credential))
class ProjectNotificationTemplatesAnyList(SubListCreateAttachDetachAPIView):