Commit a02b242e by Diana Huang

Merge pull request #8413 from edx/diana/fix-allow-multiple

Allow multiple external_link tabs for one course.
parents 53e2f2ee a224d06a
......@@ -234,6 +234,7 @@ class ExternalLinkCourseViewType(EnrolledCourseViewType):
name = 'external_link'
priority = None
is_default = False # An external link tab is not added to a course by default
allow_multiple = True
@classmethod
def create_tab(cls, tab_dict):
......
......@@ -510,6 +510,7 @@ class TabListTestCase(TabTestCase):
{'type': CourseInfoViewType.name, 'name': 'fake_name'},
{'type': 'discussion', 'name': 'fake_name'},
{'type': ExternalLinkCourseViewType.name, 'name': 'fake_name', 'link': 'fake_link'},
{'type': ExternalLinkCourseViewType.name, 'name': 'fake_name', 'link': 'fake_link'},
{'type': 'textbooks'},
{'type': 'pdf_textbooks'},
{'type': 'html_textbooks'},
......
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