Removing some unneeded comments from activity stream queryset

This commit is contained in:
Matthew Jones
2013-11-19 08:02:43 -05:00
parent 812aafdfef
commit be43447903

View File

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