Merge pull request #15667 from edx/afzaledx/get_programs_with_type_fix

Added a missing parameter.
This commit is contained in:
Afzal Wali Naushahi
2017-07-26 17:02:33 +05:00
committed by GitHub
2 changed files with 2 additions and 2 deletions

View File

@@ -211,7 +211,7 @@ def index(request, extra_context=None, user=AnonymousUser()):
# Add marketable programs to the context if the multi-tenant programs switch is enabled.
if waffle.switch_is_active('get-multitenant-programs'):
programs_list = get_programs_with_type(include_hidden=False)
programs_list = get_programs_with_type(request.site, include_hidden=False)
context['programs_list'] = programs_list

View File

@@ -156,7 +156,7 @@ def courses(request):
# Add marketable programs to the context if the multi-tenant programs switch is enabled.
if waffle.switch_is_active('get-multitenant-programs'):
programs_list = get_programs_with_type(include_hidden=False)
programs_list = get_programs_with_type(request.site, include_hidden=False)
return render_to_response(
"courseware/courses.html",