code: def add_constraints(self):
          
          if self._constraints:
              super(MorphOneOrMany, self).add_constraints()
  
              self._query.where(self._morph_type, self._morph_name)
docs: Set the base constraints of the relation query