EDUCATOR-1573, add waffle switch

This commit is contained in:
Sanford Student
2017-10-20 11:39:03 -04:00
parent c27c39301d
commit 1d6ca854f5
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: ')