Added GARGOYLE_SWITCH_DEFAULTS setting, which allows engineers to set the default state of a feature before it's been added via the gargoyle admin. Requires SwitchManager to use auto_create.
It works kind of like this:
GARGOYLE_SWITCH_DEFAULTS = {
'active_by_default': {
'is_active': True,
'label': 'Default Active',
'description': 'When you want the newness',
},
'inactive_by_default': {
'is_active': False,
'label': 'Default Inactive',
'description': 'Controls the funkiness.',
},
}
Added GARGOYLE_SWITCH_DEFAULTS setting, which allows engineers to set the default state of a feature before it's been added via the gargoyle admin. Requires SwitchManager to use auto_create.
It works kind of like this:
GARGOYLE_SWITCH_DEFAULTS = { 'active_by_default': { 'is_active': True, 'label': 'Default Active', 'description': 'When you want the newness', }, 'inactive_by_default': { 'is_active': False, 'label': 'Default Inactive', 'description': 'Controls the funkiness.', }, }