From 50ee0311516f0d655b880e7ab5fb00be5d77c37e Mon Sep 17 00:00:00 2001 From: Syed Hassan Raza Date: Tue, 25 Nov 2014 16:57:16 +0500 Subject: [PATCH] Modify error message --- cms/djangoapps/contentstore/tests/test_contentstore.py | 8 ++++---- cms/djangoapps/contentstore/views/course.py | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/cms/djangoapps/contentstore/tests/test_contentstore.py b/cms/djangoapps/contentstore/tests/test_contentstore.py index 7ff89e6a39..53a6c189d5 100644 --- a/cms/djangoapps/contentstore/tests/test_contentstore.py +++ b/cms/djangoapps/contentstore/tests/test_contentstore.py @@ -1009,7 +1009,7 @@ class ContentStoreTest(ContentStoreTestCase): def test_create_course_duplicate_course(self): """Test new course creation - error path""" self.client.ajax_post('/course/', self.course_data) - self.assert_course_creation_failed('There is already a course defined with the same organization, course number, and course run. Please change either organization or course number to be unique.') + self.assert_course_creation_failed('There is already a course defined with the same organization and course number. Please change either organization or course number to be unique.') def assert_course_creation_failed(self, error_message): """ @@ -1038,7 +1038,7 @@ class ContentStoreTest(ContentStoreTestCase): self.course_data['display_name'] = 'Robot Super Course Two' self.course_data['run'] = '2013_Summer' - self.assert_course_creation_failed('There is already a course defined with the same organization, course number, and course run. Please change either organization or course number to be unique.') + self.assert_course_creation_failed('There is already a course defined with the same organization and course number. Please change either organization or course number to be unique.') def test_create_course_case_change(self): """Test new course creation - error path due to case insensitive name equality""" @@ -1046,13 +1046,13 @@ class ContentStoreTest(ContentStoreTestCase): self.client.ajax_post('/course/', self.course_data) cache_current = self.course_data['org'] self.course_data['org'] = self.course_data['org'].lower() - self.assert_course_creation_failed('There is already a course defined with the same organization, course number, and course run. Please change either organization or course number to be unique.') + self.assert_course_creation_failed('There is already a course defined with the same organization and course number. Please change either organization or course number to be unique.') self.course_data['org'] = cache_current self.client.ajax_post('/course/', self.course_data) cache_current = self.course_data['number'] self.course_data['number'] = self.course_data['number'].upper() - self.assert_course_creation_failed('There is already a course defined with the same organization, course number, and course run. Please change either organization or course number to be unique.') + self.assert_course_creation_failed('There is already a course defined with the same organization and course number. Please change either organization or course number to be unique.') def test_course_substring(self): """ diff --git a/cms/djangoapps/contentstore/views/course.py b/cms/djangoapps/contentstore/views/course.py index 5d5529aaf3..ebe2aa0d7a 100644 --- a/cms/djangoapps/contentstore/views/course.py +++ b/cms/djangoapps/contentstore/views/course.py @@ -543,7 +543,7 @@ def _create_or_rerun_course(request): return JsonResponse({ 'ErrMsg': _( 'There is already a course defined with the same ' - 'organization, course number, and course run. Please ' + 'organization and course number. Please ' 'change either organization or course number to be unique.' ), 'OrgErrMsg': _(