def _parent_filter(self, parent, relationship, **kwargs):
if parent is None or relationship is None:<EOL><INDENT>return {}<EOL><DEDENT>parent_filter_kwargs = {}<EOL>query_params = ((self._reverse_rel_name(relationship), parent),)<EOL>parent_filter_kwargs['<STR_LIT>'] = query_params<EOL>if kwargs.get('<STR_LIT>', None) is None:<EOL><INDENT>parent_data = self.read(pk=parent)['<STR_LIT>'][<NUM_LIT:0>]<EOL>parent_filter_kwargs['<STR_LIT>'] = parent_data[<EOL>'<STR_LIT>']<EOL><DEDENT>return parent_filter_kwargs<EOL>
Returns filtering parameters to limit a search to the children
of a particular node by a particular relationship.