|
78 | 78 | from openedx.core.djangoapps.content.course_overviews.models import CourseOverview |
79 | 79 | from openedx.core.djangoapps.credit.tasks import update_credit_course_requirements |
80 | 80 | from openedx.core.djangoapps.models.course_details import CourseDetails |
81 | | -from openedx.core.djangoapps.site_configuration import helpers as configuration_helpers |
82 | 81 | from openedx.core.djangolib.js_utils import dump_js_escaped_json |
83 | 82 | from openedx.core.lib.api.view_utils import view_auth_classes |
84 | 83 | from openedx.core.lib.course_tabs import CourseTabPluginManager |
|
99 | 98 | from ..tasks import rerun_course as rerun_course_task |
100 | 99 | from ..toggles import ( |
101 | 100 | default_enable_flexible_peer_openassessments, |
102 | | - use_new_advanced_settings_page, |
103 | 101 | use_new_grading_page, |
104 | 102 | use_new_group_configurations_page, |
105 | 103 | use_new_schedule_details_page, |
|
115 | 113 | get_group_configurations_context, |
116 | 114 | get_group_configurations_url, |
117 | 115 | get_lms_link_for_item, |
118 | | - get_proctored_exam_settings_url, |
119 | 116 | get_schedule_details_url, |
120 | 117 | get_studio_home_url, |
121 | 118 | get_textbooks_url, |
@@ -1522,24 +1519,7 @@ def advanced_settings_handler(request, course_key_string): |
1522 | 1519 | advanced_dict.get('mobile_available')['deprecated'] = True |
1523 | 1520 |
|
1524 | 1521 | if 'text/html' in request.META.get('HTTP_ACCEPT', '') and request.method == 'GET': |
1525 | | - if use_new_advanced_settings_page(course_key): |
1526 | | - return redirect(get_advanced_settings_url(course_key)) |
1527 | | - publisher_enabled = configuration_helpers.get_value_for_org( |
1528 | | - course_block.location.org, |
1529 | | - 'ENABLE_PUBLISHER', |
1530 | | - settings.FEATURES.get('ENABLE_PUBLISHER', False) |
1531 | | - ) |
1532 | | - # gather any errors in the currently stored proctoring settings. |
1533 | | - proctoring_errors = CourseMetadata.validate_proctoring_settings(course_block, advanced_dict, request.user) |
1534 | | - |
1535 | | - return render_to_response('settings_advanced.html', { |
1536 | | - 'context_course': course_block, |
1537 | | - 'advanced_dict': advanced_dict, |
1538 | | - 'advanced_settings_url': reverse_course_url('advanced_settings_handler', course_key), |
1539 | | - 'publisher_enabled': publisher_enabled, |
1540 | | - 'mfe_proctored_exam_settings_url': get_proctored_exam_settings_url(course_block.id), |
1541 | | - 'proctoring_errors': proctoring_errors, |
1542 | | - }) |
| 1522 | + return redirect(get_advanced_settings_url(course_key)) |
1543 | 1523 | elif 'application/json' in request.META.get('HTTP_ACCEPT', ''): |
1544 | 1524 | if request.method == 'GET': |
1545 | 1525 | return JsonResponse(CourseMetadata.fetch(course_block)) |
|
0 commit comments