Skip to content

Commit

Permalink
chore: rename flag
Browse files Browse the repository at this point in the history
  • Loading branch information
kaustavb12 committed Sep 2, 2024
1 parent 2eecaed commit 5efcd53
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions cms/envs/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -592,13 +592,13 @@
# .. toggle_creation_date: 2024-04-10
'BADGES_ENABLED': False,

# .. toggle_name: FEATURES['UNIT_DISCUSSION_SIDEBAR_ENABLED_BY_DEFAULT']
# .. toggle_name: FEATURES['IN_CONTEXT_DISCUSSION_ENABLED_DEFAULT']
# .. toggle_implementation: DjangoSetting
# .. toggle_default: True
# .. toggle_description: Set to False to not enable discussion sidebar by default for new units.
# .. toggle_use_cases: open_edx
# .. toggle_creation_date: 2024-08-31
'UNIT_DISCUSSION_SIDEBAR_ENABLED_BY_DEFAULT': True,
'IN_CONTEXT_DISCUSSION_ENABLED_DEFAULT': True,

# .. toggle_name: FEATURES['ENABLE_LEGACY_MD5_HASH_FOR_ANONYMOUS_USER_ID']
# .. toggle_implementation: DjangoSetting
Expand Down
2 changes: 1 addition & 1 deletion xmodule/vertical_block.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ class VerticalFields:
discussion_enabled = Boolean(
display_name=_("Enable in-context discussions for the Unit"),
help=_("Add discussion for the Unit."),
default=settings.FEATURES.get('UNIT_DISCUSSION_SIDEBAR_ENABLED_BY_DEFAULT', True),
default=settings.FEATURES.get('IN_CONTEXT_DISCUSSION_ENABLED_DEFAULT', True),
scope=Scope.settings,
)

Expand Down

0 comments on commit 5efcd53

Please sign in to comment.