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

Allow multiple external_link tabs for one course.
This commit is contained in:
Diana Huang
2015-06-08 11:09:55 -04:00
2 changed files with 2 additions and 0 deletions

View File

@@ -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):

View File

@@ -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'},