def notification_post_delete_handler(sender, **kwargs): from sdncon.rest.config import is_config_model if kwargs['using'] == 'default' and not is_config_model(sender): do_delete_notification(sender, kwargs['instance'])
def notification_post_delete_handler(sender, **kwargs): from sdncon.rest.config import is_config_model if kwargs['using'] == 'default' and not is_config_model(sender): do_delete_notification(sender, kwargs['instance'])
def notification_post_save_handler(sender, **kwargs): from sdncon.rest.config import is_config_model if not kwargs['raw'] and (kwargs['using'] == "default") and not is_config_model(sender): do_modify_notification(sender, kwargs['instance'])
def notification_post_save_handler(sender, **kwargs): from sdncon.rest.config import is_config_model if not kwargs['raw'] and (kwargs['using'] == "default") and not is_config_model(sender): do_modify_notification(sender, kwargs['instance'])