def METHOD_NAME(self, flag):
    """
    Produce correct "computed_status" values for WaffleFlagCourseOverrideModel or
    WaffleFlagOrgOverrideModel instances.
    """
    computed_status = super().METHOD_NAME(flag)
    # check course/org overrides only if computed_status is not already 'both'
    if computed_status != "both":
        has_force_on = False
        has_force_off = False
        for override_key in ("course_overrides", "org_overrides"):
            if override_key in flag:
                has_force_on = has_force_on or any(
                    override["force"] == "on" for override in flag[override_key]
                )
                has_force_off = has_force_off or any(
                    override["force"] == "off" for override in flag[override_key]
                )
        if has_force_on and has_force_off:
            computed_status = "both"
        elif has_force_on:
            computed_status = "on" if computed_status == "on" else "both"
        elif has_force_off:
            computed_status = "off" if computed_status == "off" else "both"
    return computed_status