(self, stack_frames, target_module, source_form_datums)
:param stack_frames: Stack to add children to
        :param target_module: Module that we're targeting for navigating to
        :param source_form_datums: List of datums from the source form.
:param stack_frames: Stack to add children to
        :param target_module: Module that we're targeting for navigating to
        :param source_form_datums: List of datums from the source form.
: param stack_frames : Stack to add children to : param target_module : Module that we re targeting for navigating to : param source_form_datums : List of datums from the source form .
def _add_stack_children_for_target(self, stack_frames, target_module, source_form_datums):
        """
        :param stack_frames: Stack to add children to
        :param target_module: Module that we're targeting for navigating to
        :param source_form_datums: List of datums from the source form.
        """
        ids_on_stack = stack_frames.ids_on_stack

        if target_module.forms or (target_module.case_list and target_module.case_list.show):
            target_frame_children = self.helper.get_frame_children(target_module)
            remaining_target_frame_children = [fc for fc in target_frame_children if fc.id not in ids_on_stack]
            frame_children = _get_datums_matched_to_source(
                remaining_target_frame_children, source_form_datums
            )
            stack_frames.add_children(frame_children)
def _add_stack_children_for_target ( self , stack_frames , target_module , source_form_datums ) : ids_on_stack = stack_frames . ids_on_stack if target_module . forms or ( target_module . case_list and target_module . case_list . show ) : target_frame_children = self . helper . get_frame_children ( target_module ) remaining_target_frame_children = [ fc for fc in target_frame_children if fc . id not in ids_on_stack ] frame_children = _get_datums_matched_to_source ( remaining_target_frame_children , source_form_datums ) stack_frames . add_children ( frame_children )