def _new_pivot_query(self):
        query = super(MorphToMany, self)._new_pivot_query()

        return query.where(self._morph_type, self._morph_name)
Create a new query builder for the pivot table.
dataset/ETHPy150Open sdispater/orator/orator/orm/relations/morph_to_many.py/MorphToMany._new_pivot_query