Returns a list of restclients.Curriculum models, for the passed
    Term model.

def get_curricula_by_term(term, view_unpublished=False):
    """
    Returns a list of restclients.Curriculum models, for the passed
    Term model.
    """
    view_unpublished = "true" if view_unpublished else "false"
    url = "{}?{}".format(
        curriculum_search_url_prefix,
        urlencode([
                   ("quarter", term.quarter.lower(),),
                   ("year", term.year,),
                   ("view_unpublished", view_unpublished,)]))
    return _json_to_curricula(get_resource(url))