Commit ec1473f8 by Afzal Wali

Added a missing parameter.

parent 53d9f87d
...@@ -211,7 +211,7 @@ def index(request, extra_context=None, user=AnonymousUser()): ...@@ -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. # Add marketable programs to the context if the multi-tenant programs switch is enabled.
if waffle.switch_is_active('get-multitenant-programs'): 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 context['programs_list'] = programs_list
......
...@@ -156,7 +156,7 @@ def courses(request): ...@@ -156,7 +156,7 @@ def courses(request):
# Add marketable programs to the context if the multi-tenant programs switch is enabled. # Add marketable programs to the context if the multi-tenant programs switch is enabled.
if waffle.switch_is_active('get-multitenant-programs'): 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( return render_to_response(
"courseware/courses.html", "courseware/courses.html",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment