From e2d8e751a045ad2977e26a6f72e0637cc9bc781c Mon Sep 17 00:00:00 2001 From: Diana Huang Date: Tue, 6 Feb 2018 12:36:12 -0500 Subject: [PATCH] Force bootstrap on for this page. --- openedx/features/portfolio_project/views.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/openedx/features/portfolio_project/views.py b/openedx/features/portfolio_project/views.py index ea3f5770f3..84cea1e6e6 100644 --- a/openedx/features/portfolio_project/views.py +++ b/openedx/features/portfolio_project/views.py @@ -17,6 +17,13 @@ class GenericTabView(CourseTabView): """ Provides a blank page that acts as its own tab in courseware for displaying content. """ + + def uses_bootstrap(self, request, course, tab): + """ + Forces the generic tab to use bootstrap styling. + """ + return True + @method_decorator(cache_control(no_cache=True, no_store=True, must_revalidate=True)) @method_decorator(ensure_valid_course_key) def get(self, request, course_id, **kwargs): @@ -32,7 +39,6 @@ class GenericTabView(CourseTabView): context = { 'course': course, 'user': request.user, - 'uses_bootstrap': True, 'tab_name': tab, } html = render_to_string('portfolio_project/generic_tab.html', context)