code: def _get_has_relation_query(self, relation):
          
          from .relations import Relation
  
          return Relation.no_constraints(
              lambda: getattr(self.get_model(), relation)()
          )
docs: Get the "has" relation base query
  
          :type relation: str
  
          :rtype: Builder