def filter_by_domain(self, domain):
        """
        Apply the given domain to a copy of this query
        """
        query = self._copy()
        query.domain = domain
        return query
def filter_by_domain ( self , domain ) : query = self . _copy ( ) query . domain = domain return query
Apply the given domain to a copy of this query