'Expands all the subsections in this course.'

def expand_all_subsections(self):

    for section in self.sections():
        if section.is_collapsed:
            section.expand_subsection()
        for subsection in section.subsections():
            if subsection.is_collapsed:
                subsection.expand_subsection()
