Commit 453e8f50 by Olivier Marquez Committed by David Baumgold

Update tabs.py

parent 94bf8a18
...@@ -15,6 +15,7 @@ from xmodule.modulestore.django import modulestore ...@@ -15,6 +15,7 @@ from xmodule.modulestore.django import modulestore
from ..utils import get_course_for_item, get_modulestore from ..utils import get_course_for_item, get_modulestore
from django.utils.translation import ugettext as _
__all__ = ['edit_tabs', 'reorder_static_tabs'] __all__ = ['edit_tabs', 'reorder_static_tabs']
...@@ -30,11 +31,13 @@ def initialize_course_tabs(course): ...@@ -30,11 +31,13 @@ def initialize_course_tabs(course):
# This logic is repeated in xmodule/modulestore/tests/factories.py # This logic is repeated in xmodule/modulestore/tests/factories.py
# so if you change anything here, you need to also change it there. # so if you change anything here, you need to also change it there.
course.tabs = [{"type": "courseware"}, course.tabs = [
{"type": "course_info", "name": "Course Info"}, {"type": "courseware", "name": _("Courseware")},
{"type": "discussion", "name": "Discussion"}, {"type": "course_info", "name": _("Course Info")},
{"type": "wiki", "name": "Wiki"}, {"type": "discussion", "name": _("Discussion")},
{"type": "progress", "name": "Progress"}] {"type": "wiki", "name": _("Wiki")},
{"type": "progress", "name": _("Progress")},
]
modulestore('direct').update_metadata(course.location.url(), own_metadata(course)) modulestore('direct').update_metadata(course.location.url(), own_metadata(course))
......
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