Skip to content

Commit

Permalink
Adding field for support tabs to program (#126)
Browse files Browse the repository at this point in the history
  • Loading branch information
stefdworschak authored Apr 30, 2024
1 parent 11ea3aa commit df691f1
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 0 deletions.
18 changes: 18 additions & 0 deletions lms/djangoapps/ci_program/migrations/0008_program_support_tabs.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Generated by Django 2.2.14 on 2024-04-26 16:37

from django.db import migrations, models


class Migration(migrations.Migration):

dependencies = [
('ci_program', '0007_auto_20230613_1400'),
]

operations = [
migrations.AddField(
model_name='program',
name='support_tabs',
field=models.CharField(blank=True, help_text='Comma-separated list of support tabs available for Program', max_length=255, null=True),
),
]
6 changes: 6 additions & 0 deletions lms/djangoapps/ci_program/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,12 @@ class Meta:
null=True,
blank=True
)
support_tabs = models.CharField(
max_length=255,
help_text=_('Comma-separated list of support tabs available for Program'),
null=True,
blank=True,
)
enrolled_students = models.ManyToManyField(
User, blank=True)
# This is used for getting the path to the enrollment email files
Expand Down
1 change: 1 addition & 0 deletions lms/envs/production.py
Original file line number Diff line number Diff line change
Expand Up @@ -1056,6 +1056,7 @@ def should_show_debug_toolbar(request):
BREADCRUMB_INDEX_URL = AUTH_TOKENS.get('BREADCRUMB_INDEX_URL')
PROGRAMMES_WITHOUT_PROGRESS = AUTH_TOKENS.get('PROGRAMMES_WITHOUT_PROGRESS')
SUPPORT_TAB_FEATURES = AUTH_TOKENS.get('SUPPORT_TAB_FEATURES')
DEFAULT_SUPPORT_TABS = (AUTH_TOKENS.get('DEFAULT_SUPPORT_TABS', 'slack,studentcare,tutor')).split(',')
INTERCOM_APP_ID = AUTH_TOKENS.get('INTERCOM_APP_ID')
INTERCOM_IDENTIFICATION_SECRET_KEY = AUTH_TOKENS.get('INTERCOM_IDENTIFICATION_SECRET_KEY')

Expand Down

0 comments on commit df691f1

Please sign in to comment.