Added a missing parameter.

This commit is contained in:
Afzal Wali
2017-07-26 15:46:49 +05:00
parent 53d9f87df3
commit ec1473f84f
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",