Skip to content

Commit

Permalink
feat: add allow_newsletter field into account settings
Browse files Browse the repository at this point in the history
  • Loading branch information
BryanttV committed Dec 12, 2024
1 parent 55f98a4 commit 44e1f00
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ def get_fields(custom_model_instance):
for field in custom_fields:
if field.name not in allowed_fields:
continue
if isinstance(field, (models.CharField, models.TextField)):
if isinstance(field, (models.CharField, models.TextField, models.BooleanField)):
yield field


Expand Down
2 changes: 1 addition & 1 deletion nau_openedx_extensions/settings/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ def plugin_settings(settings):
settings.NAU_COURSE_MESSAGE_BATCH_SIZE = 50
settings.NAU_COURSE_MESSAGE_RECIPIENT_FIELDS = ["profile__name", "email"]
settings.NAU_CC_ALLOWED_SLUG = "cccmd:"
settings.NAU_ACCOUNTS_CC_VISIBLE_FIELDS = ["employment_situation", "nif"]
settings.NAU_ACCOUNTS_CC_VISIBLE_FIELDS = ["employment_situation", "nif", "allow_newsletter"]
settings.SCORMXBLOCK_ASYNC_THRESHOLD = 500
settings.NAU_SITE_CONFIGURATION_HELPERS_MODULE = (
"nau_openedx_extensions.edxapp_wrapper.backends.site_configuration_helpers_l_v1"
Expand Down

0 comments on commit 44e1f00

Please sign in to comment.