def _package_activity_query(package_id):
    """Return an SQLAlchemy query for all activities about package_id.

    """
    import ckan.model as model
    q = model.Session.query(model.Activity)
    q = q.filter_by(object_id=package_id)
    return q
