def get_subscribers_query(stream, requesting_user):
 validate_user_access_to_subscribers(requesting_user, stream)
 subscriptions = Subscription.objects.filter(recipient__type=Recipient.STREAM, recipient__type_id=stream.id, user_profile__is_active=True, active=True)
 return subscriptions

def get_subscribers_query ( stream , requesting_user ) : validate_user_access_to_subscribers ( requesting_user , stream ) subscriptions = Subscription . objects . filter ( recipient__type = Recipient . STREAM , recipient__type_id = stream . id , user_profile__is_active = True , active = True ) return subscriptions
build a query to get the subscribers list for a stream .