mirror of
https://github.com/ansible/awx.git
synced 2026-03-06 19:21:06 -03:30
Removing some unneeded comments from activity stream queryset
This commit is contained in:
@@ -1073,8 +1073,8 @@ class ActivityStreamList(SimpleListAPIView):
|
|||||||
type_qs = get_user_queryset(self.request.user, eval(this_type))
|
type_qs = get_user_queryset(self.request.user, eval(this_type))
|
||||||
ids = [t.id for t in type_qs]
|
ids = [t.id for t in type_qs]
|
||||||
if len(ids) > 0:
|
if len(ids) > 0:
|
||||||
all_qs = all_qs | (Q(object1_type=this_type) & Q(object1_id__in=ids)) #ActivityStream.objects.filter(object1_type=this_type, object1_id__in=ids)
|
all_qs = all_qs | (Q(object1_type=this_type) & Q(object1_id__in=ids))
|
||||||
all_qs = all_qs | (Q(object2_type=this_type) & Q(object2_id__in=ids)) #ActivityStream.objects.filter(object2_type=this_type, object2_id__in=ids)
|
all_qs = all_qs | (Q(object2_type=this_type) & Q(object2_id__in=ids))
|
||||||
except Exception, e:
|
except Exception, e:
|
||||||
logger.warn("Error: " + str(e))
|
logger.warn("Error: " + str(e))
|
||||||
continue
|
continue
|
||||||
|
|||||||
Reference in New Issue
Block a user