Merge pull request #16295 from edx/sstudent/EDUCATOR-1573

EDUCATOR-1573, add waffle switch
This commit is contained in:
sanfordstudent
2017-10-20 13:58:01 -04:00
committed by GitHub
2 changed files with 18 additions and 0 deletions

View File

@@ -0,0 +1,18 @@
"""
This module contains various configuration settings via
waffle switches for the Discussions app.
"""
from openedx.core.djangoapps.waffle_utils import WaffleSwitchNamespace
# Namespace
WAFFLE_NAMESPACE = u'discussions'
# Switches
FORUM_RESPONSE_NOTIFICATIONS = u'forum_response_notifications'
def waffle():
"""
Returns the namespaced, cached, audited Waffle class for Discussions.
"""
return WaffleSwitchNamespace(name=WAFFLE_NAMESPACE, log_prefix=u'Discussions: ')