Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

make student line items show up in program modules list #3754

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion esp/esp/program/forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ class ProgramCreationForm(BetterModelForm):
def __init__(self, *args, **kwargs):
""" Used to update ChoiceFields with the current modules. """
# These modules are the "choosable" ones that admins will usually want to choose to select or exclude (i.e. not automatically include or exclude)
self.program_module_question_ids = OrderedDict([('Will you charge for items such as shirts or lunch?', [x.id for x in ProgramModule.objects.filter(admin_title__in=['Student Optional Fees', 'Accounting', 'Financial Aid Application', 'Easily Approve Financial Aid Requests'])]),
self.program_module_question_ids = OrderedDict([('Will you charge for items such as shirts or lunch?', [x.id for x in ProgramModule.objects.filter(admin_title__in=['Student Optional Fees', 'Accounting', 'Financial Aid Application', 'Easily Approve Financial Aid Requests', 'Line Items Module'])]),
('If you will charge for admission or other costs, will you accept payment by credit card?', [x.id for x in ProgramModule.objects.filter(admin_title__in=['Credit Card Payment Module (Stripe)', 'Credit Card View Module'])]),
('Do you want a pre-program quiz for teachers?', [x.id for x in ProgramModule.objects.filter(admin_title='Teacher Logistics Quiz')]),
('Will you have any additional non-survey forms that teachers should fill out?', [x.id for x in ProgramModule.objects.filter(admin_title='Teacher Custom Form')]),
Expand Down
2 changes: 1 addition & 1 deletion esp/esp/program/modules/handlers/lineitemsmodule.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def module_properties(cls):
"link_title": "Line Items Management",
"module_type": "manage",
"seq": -9999,
"choosable": 1,
"choosable": 0,
}

@main_call
Expand Down
Loading