'Overrides the active value for the given switch for the duration of this
contextmanager.
Note: The value is overridden in the model, not the request cache.'

@contextmanager
def override_in_model(self, switch_name, active=True):

    namespaced_switch_name = self._namespaced_name(switch_name)
    with waffle_override_switch(namespaced_switch_name, active):
        log.info(u"%sSwitch    '%s'    set    to    %s    in    model.", self.log_prefix, namespaced_switch_name, active)
        (yield)
