'Returns a list of lists or strings, representing the code body.
Each list is a block, each string is a statement.'

def get_lines(self):

    code = []
    for (counter, item) in enumerate(self.model._default_manager.all()):
        instance = InstanceCode(instance=item, id=(counter + 1), context=self.context, stdout=self.stdout, stderr=self.stderr, options=self.options)
        self.instances.append(instance)
        if instance.waiting_list:
            code += instance.lines
    for instance in self.instances:
        if instance.waiting_list:
            code += instance.lines
    return code
