def METHOD_NAME(flags_dict):
    """
    Add waffle flag courserun & org override state from both the
    WaffleFlagCourseOverrideModel and WaffleFlagOrgOverrideModel models.
    """
    for override_type, override_key in (
        (FlagOverride.COURSE, "course_overrides"),
        (FlagOverride.ORG, "org_overrides")
    ):
        flag_overrides = _get_flag_overrides(override_type)
        for flag_name, overrides_dict in flag_overrides.items():
            enabled_overrides = [
                override
                for override in overrides_dict.values()
                if not override.get("disabled")
            ]
            if enabled_overrides:
                flag = get_or_create_toggle_response(flags_dict, flag_name)
                flag[override_key] = enabled_overrides