def _query_active_items(cls):
        """
        Build a query to collect active items of the current class

        :rtype: :class:`sqlalchemy.Query`
        """
        return DBSESSION().query(cls).filter_by(
            type_=cls.__mapper_args__['polymorphic_identity']
        ).filter_by(active=True)