diff --git a/lms/djangoapps/bulk_email/tests/test_course_optout.py b/lms/djangoapps/bulk_email/tests/test_course_optout.py index b25ecb5bdf..935e695233 100644 --- a/lms/djangoapps/bulk_email/tests/test_course_optout.py +++ b/lms/djangoapps/bulk_email/tests/test_course_optout.py @@ -38,9 +38,9 @@ class TestOptoutCourseEmails(ModuleStoreTestCase): self.client.login(username=self.student.username, password="test") - self.send_mail_url = reverse('send_email', kwargs={'course_id': self.course.id}) + self.send_mail_url = reverse('send_email', kwargs={'course_id': self.course.id.to_deprecated_string()}) self.success_content = { - 'course_id': self.course.id, + 'course_id': self.course.id.to_deprecated_string(), 'success': True, } diff --git a/lms/djangoapps/django_comment_client/base/views.py b/lms/djangoapps/django_comment_client/base/views.py index cea4f6786b..538d62dff5 100644 --- a/lms/djangoapps/django_comment_client/base/views.py +++ b/lms/djangoapps/django_comment_client/base/views.py @@ -183,7 +183,7 @@ def _create_comment(request, course_key, thread_id=None, parent_id=None): anonymous=anonymous, anonymous_to_peers=anonymous_to_peers, user_id=request.user.id, - course_id=course_id.to_deprecated_string(), + course_id=course_key.to_deprecated_string(), thread_id=thread_id, parent_id=parent_id, body=post["body"] diff --git a/lms/djangoapps/instructor/views/instructor_dashboard.py b/lms/djangoapps/instructor/views/instructor_dashboard.py index 5e86c9b910..952c7736e8 100644 --- a/lms/djangoapps/instructor/views/instructor_dashboard.py +++ b/lms/djangoapps/instructor/views/instructor_dashboard.py @@ -83,7 +83,7 @@ def instructor_dashboard_2(request, course_id): context = { 'course': course, - 'old_dashboard_url': reverse('instructor_dashboard_legacy', kwargs={'course_id': course_id.to_deprecated_string()}), + 'old_dashboard_url': reverse('instructor_dashboard_legacy', kwargs={'course_id': course_key.to_deprecated_string()}), 'studio_url': studio_url, 'sections': sections, 'disable_buttons': disable_buttons, @@ -156,7 +156,7 @@ def _section_membership(course_key, access): def _section_student_admin(course_key, access): """ Provide data for the corresponding dashboard section """ is_small_course = False - enrollment_count = CourseEnrollment.num_enrolled_in(course_id) + enrollment_count = CourseEnrollment.num_enrolled_in(course_key) max_enrollment_for_buttons = settings.FEATURES.get("MAX_ENROLLMENT_INSTR_BUTTONS") if max_enrollment_for_buttons is not None: is_small_course = enrollment_count <= max_enrollment_for_buttons @@ -166,12 +166,12 @@ def _section_student_admin(course_key, access): 'section_display_name': _('Student Admin'), 'access': access, 'is_small_course': is_small_course, - 'get_student_progress_url_url': reverse('get_student_progress_url', kwargs={'course_id': course_id.to_deprecated_string()}), - 'enrollment_url': reverse('students_update_enrollment', kwargs={'course_id': course_id.to_deprecated_string()}), - 'reset_student_attempts_url': reverse('reset_student_attempts', kwargs={'course_id': course_id.to_deprecated_string()}), - 'rescore_problem_url': reverse('rescore_problem', kwargs={'course_id': course_id.to_deprecated_string()}), - 'list_instructor_tasks_url': reverse('list_instructor_tasks', kwargs={'course_id': course_id.to_deprecated_string()}), - 'spoc_gradebook_url': reverse('spoc_gradebook', kwargs={'course_id': course_id.to_deprecated_string()}), + 'get_student_progress_url_url': reverse('get_student_progress_url', kwargs={'course_id': course_key.to_deprecated_string()}), + 'enrollment_url': reverse('students_update_enrollment', kwargs={'course_id': course_key.to_deprecated_string()}), + 'reset_student_attempts_url': reverse('reset_student_attempts', kwargs={'course_id': course_key.to_deprecated_string()}), + 'rescore_problem_url': reverse('rescore_problem', kwargs={'course_id': course_key.to_deprecated_string()}), + 'list_instructor_tasks_url': reverse('list_instructor_tasks', kwargs={'course_id': course_key.to_deprecated_string()}), + 'spoc_gradebook_url': reverse('spoc_gradebook', kwargs={'course_id': course_key.to_deprecated_string()}), } return section_data diff --git a/lms/djangoapps/instructor/views/legacy.py b/lms/djangoapps/instructor/views/legacy.py index aedd4990ea..c8eef40c92 100644 --- a/lms/djangoapps/instructor/views/legacy.py +++ b/lms/djangoapps/instructor/views/legacy.py @@ -1038,7 +1038,7 @@ def instructor_dashboard(request, course_id): 'metrics_results': metrics_results, } - context['standard_dashboard_url'] = reverse('instructor_dashboard', kwargs={'course_id': course_id.to_deprecated_string()}) + context['standard_dashboard_url'] = reverse('instructor_dashboard', kwargs={'course_id': course_key.to_deprecated_string()}) return render_to_response('courseware/instructor_dashboard.html', context) diff --git a/lms/templates/courseware/instructor_dashboard.html b/lms/templates/courseware/instructor_dashboard.html index 308859ef44..d0c43396f7 100644 --- a/lms/templates/courseware/instructor_dashboard.html +++ b/lms/templates/courseware/instructor_dashboard.html @@ -197,19 +197,11 @@ function goto( mode) % endif
-<<<<<<< HEAD - ${_("Gradebook")} + ${_("Gradebook")}
- ${_("Grade summary")} -======= - ${_("Gradebook")} -
- -- ${_("Grade summary")} ->>>>>>> edx/master + ${_("Grade summary")}
diff --git a/lms/templates/notes.html b/lms/templates/notes.html
index ae8347e464..58f81be274 100644
--- a/lms/templates/notes.html
+++ b/lms/templates/notes.html
@@ -64,21 +64,12 @@