|
71 | 71 | from openedx.core.djangolib.js_utils import dump_js_escaped_json |
72 | 72 | from openedx.core.lib.course_tabs import CourseTabPluginManager |
73 | 73 | from organizations.models import Organization |
74 | | -from xmodule.contentstore.content import StaticContent # lint-amnesty, pylint: disable=wrong-import-order |
75 | 74 | from xmodule.course_block import CourseBlock, CourseFields # lint-amnesty, pylint: disable=wrong-import-order |
76 | 75 | from xmodule.error_block import ErrorBlock # lint-amnesty, pylint: disable=wrong-import-order |
77 | 76 | from xmodule.modulestore import EdxJSONEncoder # lint-amnesty, pylint: disable=wrong-import-order |
|
90 | 89 | from ..tasks import rerun_course as rerun_course_task |
91 | 90 | from ..toggles import ( |
92 | 91 | default_enable_flexible_peer_openassessments, |
93 | | - use_new_updates_page, |
94 | 92 | use_new_advanced_settings_page, |
95 | 93 | use_new_grading_page, |
96 | 94 | use_new_group_configurations_page, |
@@ -1064,24 +1062,7 @@ def course_info_handler(request, course_key_string): |
1064 | 1062 | except InvalidKeyError: |
1065 | 1063 | raise Http404 # lint-amnesty, pylint: disable=raise-missing-from |
1066 | 1064 |
|
1067 | | - with modulestore().bulk_operations(course_key): |
1068 | | - course_block = get_course_and_check_access(course_key, request.user) |
1069 | | - if not course_block: |
1070 | | - raise Http404 |
1071 | | - if use_new_updates_page(course_key): |
1072 | | - return redirect(get_updates_url(course_key)) |
1073 | | - if 'text/html' in request.META.get('HTTP_ACCEPT', 'text/html'): |
1074 | | - return render_to_response( |
1075 | | - 'course_info.html', |
1076 | | - { |
1077 | | - 'context_course': course_block, |
1078 | | - 'updates_url': reverse_course_url('course_info_update_handler', course_key), |
1079 | | - 'handouts_locator': course_key.make_usage_key('course_info', 'handouts'), |
1080 | | - 'base_asset_url': StaticContent.get_base_url_path_for_course_assets(course_block.id), |
1081 | | - } |
1082 | | - ) |
1083 | | - else: |
1084 | | - return HttpResponseBadRequest("Only supports html requests") |
| 1065 | + return redirect(get_updates_url(course_key)) |
1085 | 1066 |
|
1086 | 1067 |
|
1087 | 1068 | @login_required |
|
0 commit comments