Merge pull request #8413 from edx/diana/fix-allow-multiple
Allow multiple external_link tabs for one course.
This commit is contained in:
@@ -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'},
|
||||
|
||||
Reference in New Issue
Block a user