'Get the module from the course from which to pattern match (or not) the \'View in Studio\' buttons'

def _get_module(self, course_id, descriptor, location):

    field_data_cache = FieldDataCache.cache_for_descriptor_descendents(course_id, self.staff_user, descriptor)
    return render.get_module(self.staff_user, self.request, location, field_data_cache)
