Commit 83011e1c by sanfordstudent Committed by GitHub

Merge pull request #13666 from edx/sstudent/hack-python-paths

update all references to instructor module
parents 3f750333 79eaa4e2
...@@ -32,8 +32,8 @@ from courseware import courses ...@@ -32,8 +32,8 @@ from courseware import courses
from ccx_keys.locator import CCXLocator from ccx_keys.locator import CCXLocator
from student.models import CourseEnrollment from student.models import CourseEnrollment
from student.tests.factories import UserFactory from student.tests.factories import UserFactory
from instructor.access import allow_access, list_with_level from lms.djangoapps.instructor.access import allow_access, list_with_level
from instructor.enrollment import ( from lms.djangoapps.instructor.enrollment import (
enroll_email, enroll_email,
get_email_params, get_email_params,
) )
......
...@@ -19,7 +19,7 @@ from ccx_keys.locator import CCXLocator ...@@ -19,7 +19,7 @@ from ccx_keys.locator import CCXLocator
from courseware import courses from courseware import courses
from xmodule.modulestore.django import SignalHandler from xmodule.modulestore.django import SignalHandler
from edx_rest_framework_extensions.authentication import JwtAuthentication from edx_rest_framework_extensions.authentication import JwtAuthentication
from instructor.enrollment import ( from lms.djangoapps.instructor.enrollment import (
enroll_email, enroll_email,
get_email_params, get_email_params,
) )
......
...@@ -20,7 +20,7 @@ from courseware.testutils import FieldOverrideTestMixin ...@@ -20,7 +20,7 @@ from courseware.testutils import FieldOverrideTestMixin
from django_comment_client.utils import has_forum_access from django_comment_client.utils import has_forum_access
from django_comment_common.models import FORUM_ROLE_ADMINISTRATOR from django_comment_common.models import FORUM_ROLE_ADMINISTRATOR
from django_comment_common.utils import are_permissions_roles_seeded from django_comment_common.utils import are_permissions_roles_seeded
from instructor.access import ( from lms.djangoapps.instructor.access import (
allow_access, allow_access,
list_with_level, list_with_level,
) )
...@@ -1159,7 +1159,7 @@ class TestCCXGrades(FieldOverrideTestMixin, SharedModuleStoreTestCase, LoginEnro ...@@ -1159,7 +1159,7 @@ class TestCCXGrades(FieldOverrideTestMixin, SharedModuleStoreTestCase, LoginEnro
) )
@patch('ccx.views.render_to_response', intercept_renderer) @patch('ccx.views.render_to_response', intercept_renderer)
@patch('instructor.views.gradebook_api.MAX_STUDENTS_PER_PAGE_GRADE_BOOK', 1) @patch('lms.djangoapps.instructor.views.gradebook_api.MAX_STUDENTS_PER_PAGE_GRADE_BOOK', 1)
def test_gradebook(self): def test_gradebook(self):
self.course.enable_ccx = True self.course.enable_ccx = True
RequestCache.clear_request_cache() RequestCache.clear_request_cache()
......
...@@ -16,17 +16,17 @@ from django.core.urlresolvers import reverse ...@@ -16,17 +16,17 @@ from django.core.urlresolvers import reverse
from smtplib import SMTPException from smtplib import SMTPException
from courseware.courses import get_course_by_id from courseware.courses import get_course_by_id
from instructor.enrollment import ( from lms.djangoapps.instructor.enrollment import (
enroll_email, enroll_email,
get_email_params, get_email_params,
unenroll_email, unenroll_email,
) )
from instructor.access import ( from lms.djangoapps.instructor.access import (
allow_access, allow_access,
list_with_level, list_with_level,
revoke_access, revoke_access,
) )
from instructor.views.tools import get_student_from_identifier from lms.djangoapps.instructor.views.tools import get_student_from_identifier
from openedx.core.djangoapps.content.course_overviews.models import CourseOverview from openedx.core.djangoapps.content.course_overviews.models import CourseOverview
from openedx.core.djangoapps.content.course_structures.models import CourseStructure from openedx.core.djangoapps.content.course_structures.models import CourseStructure
from student.models import CourseEnrollment, CourseEnrollmentException from student.models import CourseEnrollment, CourseEnrollmentException
......
...@@ -40,9 +40,9 @@ from student.roles import CourseCcxCoachRole ...@@ -40,9 +40,9 @@ from student.roles import CourseCcxCoachRole
from student.models import CourseEnrollment from student.models import CourseEnrollment
from xmodule.modulestore.django import SignalHandler from xmodule.modulestore.django import SignalHandler
from instructor.views.api import _split_input_list from lms.djangoapps.instructor.views.api import _split_input_list
from instructor.views.gradebook_api import get_grade_book_page from lms.djangoapps.instructor.views.gradebook_api import get_grade_book_page
from instructor.enrollment import ( from lms.djangoapps.instructor.enrollment import (
enroll_email, enroll_email,
get_email_params, get_email_params,
) )
......
...@@ -33,7 +33,7 @@ from opaque_keys import InvalidKeyError ...@@ -33,7 +33,7 @@ from opaque_keys import InvalidKeyError
from opaque_keys.edx.keys import CourseKey, UsageKey from opaque_keys.edx.keys import CourseKey, UsageKey
from opaque_keys.edx.locations import SlashSeparatedCourseKey from opaque_keys.edx.locations import SlashSeparatedCourseKey
from rest_framework import status from rest_framework import status
from instructor.views.api import require_global_staff from lms.djangoapps.instructor.views.api import require_global_staff
import shoppingcart import shoppingcart
import survey.utils import survey.utils
...@@ -67,7 +67,7 @@ from courseware.models import StudentModule, BaseStudentModuleHistory ...@@ -67,7 +67,7 @@ from courseware.models import StudentModule, BaseStudentModuleHistory
from courseware.url_helpers import get_redirect_url, get_redirect_url_for_global_staff from courseware.url_helpers import get_redirect_url, get_redirect_url_for_global_staff
from courseware.user_state_client import DjangoXBlockUserStateClient from courseware.user_state_client import DjangoXBlockUserStateClient
from edxmako.shortcuts import render_to_response, render_to_string, marketing_link from edxmako.shortcuts import render_to_response, render_to_string, marketing_link
from instructor.enrollment import uses_shib from lms.djangoapps.instructor.enrollment import uses_shib
from lms.djangoapps.verify_student.models import SoftwareSecurePhotoVerification from lms.djangoapps.verify_student.models import SoftwareSecurePhotoVerification
from openedx.core.djangoapps.content.course_overviews.models import CourseOverview from openedx.core.djangoapps.content.course_overviews.models import CourseOverview
from openedx.core.djangoapps.coursetalk.helpers import inject_coursetalk_keys_into_context from openedx.core.djangoapps.coursetalk.helpers import inject_coursetalk_keys_into_context
......
...@@ -19,7 +19,7 @@ from student.roles import ( ...@@ -19,7 +19,7 @@ from student.roles import (
CourseStaffRole, CourseStaffRole,
) )
from instructor.enrollment import ( from lms.djangoapps.instructor.enrollment import (
enroll_email, enroll_email,
get_email_params, get_email_params,
) )
......
...@@ -7,7 +7,7 @@ from django.http import Http404 ...@@ -7,7 +7,7 @@ from django.http import Http404
from django.core.management.base import BaseCommand from django.core.management.base import BaseCommand
from courseware.courses import get_course_by_id from courseware.courses import get_course_by_id
from instructor.offline_gradecalc import offline_grade_calculation from lms.djangoapps.instructor.offline_gradecalc import offline_grade_calculation
from opaque_keys import InvalidKeyError from opaque_keys import InvalidKeyError
from opaque_keys.edx.keys import CourseKey from opaque_keys.edx.keys import CourseKey
from opaque_keys.edx.locations import SlashSeparatedCourseKey from opaque_keys.edx.locations import SlashSeparatedCourseKey
......
...@@ -7,7 +7,7 @@ from unittest import TestCase ...@@ -7,7 +7,7 @@ from unittest import TestCase
from django.core.management import call_command from django.core.management import call_command
from mock import Mock from mock import Mock
from instructor.offline_gradecalc import offline_grade_calculation # pylint: disable=unused-import from lms.djangoapps.instructor.offline_gradecalc import offline_grade_calculation # pylint: disable=unused-import
from opaque_keys.edx.keys import CourseKey from opaque_keys.edx.keys import CourseKey
from opaque_keys.edx.locator import CourseLocator from opaque_keys.edx.locator import CourseLocator
......
...@@ -7,7 +7,7 @@ import collections ...@@ -7,7 +7,7 @@ import collections
from django.conf import settings from django.conf import settings
from django.utils.translation import ugettext as _ from django.utils.translation import ugettext as _
from courseware.courses import get_course_by_id from courseware.courses import get_course_by_id
from instructor.enrollment_report import BaseAbstractEnrollmentReportProvider from lms.djangoapps.instructor.enrollment_report import BaseAbstractEnrollmentReportProvider
from shoppingcart.models import RegistrationCodeRedemption, PaidCourseRegistration, CouponRedemption, OrderItem, \ from shoppingcart.models import RegistrationCodeRedemption, PaidCourseRegistration, CouponRedemption, OrderItem, \
InvoiceTransaction InvoiceTransaction
from student.models import CourseEnrollment, ManualEnrollmentAudit from student.models import CourseEnrollment, ManualEnrollmentAudit
......
...@@ -8,9 +8,9 @@ from opaque_keys import InvalidKeyError ...@@ -8,9 +8,9 @@ from opaque_keys import InvalidKeyError
from opaque_keys.edx.keys import CourseKey, UsageKey from opaque_keys.edx.keys import CourseKey, UsageKey
from commerce.signals import create_zendesk_ticket from commerce.signals import create_zendesk_ticket
from courseware.models import StudentModule from courseware.models import StudentModule
from instructor.views.tools import get_student_from_identifier from lms.djangoapps.instructor.views.tools import get_student_from_identifier
from django.core.exceptions import ObjectDoesNotExist from django.core.exceptions import ObjectDoesNotExist
import instructor.enrollment as enrollment import lms.djangoapps.instructor.enrollment as enrollment
from django.utils.translation import ugettext as _ from django.utils.translation import ugettext as _
......
...@@ -12,10 +12,7 @@ from student.roles import CourseBetaTesterRole, CourseStaffRole, CourseCcxCoachR ...@@ -12,10 +12,7 @@ from student.roles import CourseBetaTesterRole, CourseStaffRole, CourseCcxCoachR
from django_comment_common.models import (Role, from django_comment_common.models import (Role,
FORUM_ROLE_MODERATOR) FORUM_ROLE_MODERATOR)
from instructor.access import (allow_access, from lms.djangoapps.instructor.access import (allow_access, revoke_access, list_with_level, update_forum_role)
revoke_access,
list_with_level,
update_forum_role)
@attr(shard=1) @attr(shard=1)
......
...@@ -150,7 +150,7 @@ class CertificatesInstructorDashTest(SharedModuleStoreTestCase): ...@@ -150,7 +150,7 @@ class CertificatesInstructorDashTest(SharedModuleStoreTestCase):
@contextlib.contextmanager @contextlib.contextmanager
def _certificate_status(self, description, status): def _certificate_status(self, description, status):
"""Configure the certificate status by mocking the certificates API. """ """Configure the certificate status by mocking the certificates API. """
patched = 'instructor.views.instructor_dashboard.certs_api.example_certificates_status' patched = 'lms.djangoapps.instructor.views.instructor_dashboard.certs_api.example_certificates_status'
with mock.patch(patched) as certs_api_status: with mock.patch(patched) as certs_api_status:
cert_status = [{ cert_status = [{
'description': description, 'description': description,
......
...@@ -28,7 +28,7 @@ from student.roles import CourseCcxCoachRole ...@@ -28,7 +28,7 @@ from student.roles import CourseCcxCoachRole
from student.tests.factories import ( from student.tests.factories import (
AdminFactory AdminFactory
) )
from instructor.enrollment import ( from lms.djangoapps.instructor.enrollment import (
EmailEnrollmentState, EmailEnrollmentState,
enroll_email, enroll_email,
get_email_params, get_email_params,
......
...@@ -3,8 +3,8 @@ Exercises tests on the base_store_provider file ...@@ -3,8 +3,8 @@ Exercises tests on the base_store_provider file
""" """
from django.test import TestCase from django.test import TestCase
from instructor.enrollment_report import AbstractEnrollmentReportProvider from lms.djangoapps.instructor.enrollment_report import AbstractEnrollmentReportProvider
from instructor.paidcourse_enrollment_report import PaidCourseEnrollmentReportProvider from lms.djangoapps.instructor.paidcourse_enrollment_report import PaidCourseEnrollmentReportProvider
class BadImplementationAbstractEnrollmentReportProvider(AbstractEnrollmentReportProvider): class BadImplementationAbstractEnrollmentReportProvider(AbstractEnrollmentReportProvider):
......
...@@ -6,9 +6,9 @@ import json ...@@ -6,9 +6,9 @@ import json
from xmodule.modulestore.tests.django_utils import SharedModuleStoreTestCase from xmodule.modulestore.tests.django_utils import SharedModuleStoreTestCase
from xmodule.modulestore.tests.factories import CourseFactory from xmodule.modulestore.tests.factories import CourseFactory
from courseware.models import StudentModule from courseware.models import StudentModule
from instructor.access import allow_access from lms.djangoapps.instructor.access import allow_access
from instructor.services import InstructorService from lms.djangoapps.instructor.services import InstructorService
from instructor.tests.test_tools import msk_from_problem_urlname from lms.djangoapps.instructor.tests.test_tools import msk_from_problem_urlname
from nose.plugins.attrib import attr from nose.plugins.attrib import attr
from student.models import CourseEnrollment from student.models import CourseEnrollment
from student.tests.factories import UserFactory from student.tests.factories import UserFactory
...@@ -154,7 +154,7 @@ class InstructorServiceTests(SharedModuleStoreTestCase): ...@@ -154,7 +154,7 @@ class InstructorServiceTests(SharedModuleStoreTestCase):
) )
tags = ["proctoring"] tags = ["proctoring"]
with mock.patch("instructor.services.create_zendesk_ticket") as mock_create_zendesk_ticket: with mock.patch("lms.djangoapps.instructor.services.create_zendesk_ticket") as mock_create_zendesk_ticket:
self.service.send_support_notification( self.service.send_support_notification(
course_id=unicode(self.course.id), course_id=unicode(self.course.id),
exam_name="test_exam", exam_name="test_exam",
......
...@@ -16,7 +16,7 @@ from edxmako.shortcuts import render_to_response ...@@ -16,7 +16,7 @@ from edxmako.shortcuts import render_to_response
from courseware.tabs import get_course_tab_list from courseware.tabs import get_course_tab_list
from courseware.tests.factories import UserFactory, StudentModuleFactory from courseware.tests.factories import UserFactory, StudentModuleFactory
from courseware.tests.helpers import LoginEnrollmentTestCase from courseware.tests.helpers import LoginEnrollmentTestCase
from instructor.views.gradebook_api import calculate_page_info from lms.djangoapps.instructor.views.gradebook_api import calculate_page_info
from common.test.utils import XssTestMixin from common.test.utils import XssTestMixin
from student.tests.factories import AdminFactory, CourseEnrollmentFactory from student.tests.factories import AdminFactory, CourseEnrollmentFactory
...@@ -275,7 +275,7 @@ class TestInstructorDashboard(ModuleStoreTestCase, LoginEnrollmentTestCase, XssT ...@@ -275,7 +275,7 @@ class TestInstructorDashboard(ModuleStoreTestCase, LoginEnrollmentTestCase, XssT
response = self.client.get(self.url) response = self.client.get(self.url)
self.assertIn('D: 0.5, C: 0.57, B: 0.63, A: 0.75', response.content) self.assertIn('D: 0.5, C: 0.57, B: 0.63, A: 0.75', response.content)
@patch('instructor.views.gradebook_api.MAX_STUDENTS_PER_PAGE_GRADE_BOOK', 2) @patch('lms.djangoapps.instructor.views.gradebook_api.MAX_STUDENTS_PER_PAGE_GRADE_BOOK', 2)
def test_calculate_page_info(self): def test_calculate_page_info(self):
page = calculate_page_info(offset=0, total_students=2) page = calculate_page_info(offset=0, total_students=2)
self.assertEqual(page["offset"], 0) self.assertEqual(page["offset"], 0)
...@@ -284,8 +284,8 @@ class TestInstructorDashboard(ModuleStoreTestCase, LoginEnrollmentTestCase, XssT ...@@ -284,8 +284,8 @@ class TestInstructorDashboard(ModuleStoreTestCase, LoginEnrollmentTestCase, XssT
self.assertEqual(page["previous_offset"], None) self.assertEqual(page["previous_offset"], None)
self.assertEqual(page["total_pages"], 1) self.assertEqual(page["total_pages"], 1)
@patch('instructor.views.gradebook_api.render_to_response', intercept_renderer) @patch('lms.djangoapps.instructor.views.gradebook_api.render_to_response', intercept_renderer)
@patch('instructor.views.gradebook_api.MAX_STUDENTS_PER_PAGE_GRADE_BOOK', 1) @patch('lms.djangoapps.instructor.views.gradebook_api.MAX_STUDENTS_PER_PAGE_GRADE_BOOK', 1)
def test_spoc_gradebook_pages(self): def test_spoc_gradebook_pages(self):
for i in xrange(2): for i in xrange(2):
username = "user_%d" % i username = "user_%d" % i
......
...@@ -36,7 +36,7 @@ from util.file import ( ...@@ -36,7 +36,7 @@ from util.file import (
) )
from util.json_request import JsonResponse, JsonResponseBadRequest from util.json_request import JsonResponse, JsonResponseBadRequest
from util.views import require_global_staff from util.views import require_global_staff
from instructor.views.instructor_task_helpers import extract_email_features, extract_task_features from lms.djangoapps.instructor.views.instructor_task_helpers import extract_email_features, extract_task_features
from courseware.access import has_access from courseware.access import has_access
from courseware.courses import get_course_with_access, get_course_by_id from courseware.courses import get_course_with_access, get_course_by_id
...@@ -68,8 +68,8 @@ from student.models import ( ...@@ -68,8 +68,8 @@ from student.models import (
import instructor_task.api import instructor_task.api
from instructor_task.api_helper import AlreadyRunningError from instructor_task.api_helper import AlreadyRunningError
from instructor_task.models import ReportStore from instructor_task.models import ReportStore
import instructor.enrollment as enrollment import lms.djangoapps.instructor.enrollment as enrollment
from instructor.enrollment import ( from lms.djangoapps.instructor.enrollment import (
get_user_email_language, get_user_email_language,
enroll_email, enroll_email,
send_mail_to_student, send_mail_to_student,
...@@ -77,14 +77,14 @@ from instructor.enrollment import ( ...@@ -77,14 +77,14 @@ from instructor.enrollment import (
send_beta_role_email, send_beta_role_email,
unenroll_email, unenroll_email,
) )
from instructor.access import list_with_level, allow_access, revoke_access, ROLES, update_forum_role from lms.djangoapps.instructor.access import list_with_level, allow_access, revoke_access, ROLES, update_forum_role
import instructor_analytics.basic import instructor_analytics.basic
import instructor_analytics.distributions import instructor_analytics.distributions
import instructor_analytics.csvs import instructor_analytics.csvs
import csv import csv
from openedx.core.djangoapps.user_api.preferences.api import get_user_preference, set_user_preference from openedx.core.djangoapps.user_api.preferences.api import get_user_preference, set_user_preference
from openedx.core.djangolib.markup import HTML, Text from openedx.core.djangolib.markup import HTML, Text
from instructor.views import INVOICE_KEY from lms.djangoapps.instructor.views import INVOICE_KEY
from submissions import api as sub_api # installed from the edx-submissions repository from submissions import api as sub_api # installed from the edx-submissions repository
......
...@@ -13,7 +13,7 @@ from opaque_keys.edx.keys import CourseKey ...@@ -13,7 +13,7 @@ from opaque_keys.edx.keys import CourseKey
from edxmako.shortcuts import render_to_response from edxmako.shortcuts import render_to_response
from courseware.courses import get_course_with_access from courseware.courses import get_course_with_access
from instructor.views.api import require_level from lms.djangoapps.instructor.views.api import require_level
from lms.djangoapps.grades import course_grades from lms.djangoapps.grades import course_grades
from xmodule.modulestore.django import modulestore from xmodule.modulestore.django import modulestore
......
...@@ -3,10 +3,10 @@ E-commerce Tab Instructor Dashboard Query Registration Code Status. ...@@ -3,10 +3,10 @@ E-commerce Tab Instructor Dashboard Query Registration Code Status.
""" """
from django.core.urlresolvers import reverse from django.core.urlresolvers import reverse
from django.views.decorators.http import require_GET, require_POST from django.views.decorators.http import require_GET, require_POST
from instructor.enrollment import get_email_params, send_mail_to_student from lms.djangoapps.instructor.enrollment import get_email_params, send_mail_to_student
from django.utils.translation import ugettext as _ from django.utils.translation import ugettext as _
from courseware.courses import get_course_by_id from courseware.courses import get_course_by_id
from instructor.views.api import require_level from lms.djangoapps.instructor.views.api import require_level
from student.models import CourseEnrollment from student.models import CourseEnrollment
from util.json_request import JsonResponse from util.json_request import JsonResponse
from shoppingcart.models import CourseRegistrationCode, RegistrationCodeRedemption from shoppingcart.models import CourseRegistrationCode, RegistrationCodeRedemption
......
...@@ -24,7 +24,7 @@ import dogstats_wrapper as dog_stats_api ...@@ -24,7 +24,7 @@ import dogstats_wrapper as dog_stats_api
from pytz import UTC from pytz import UTC
from StringIO import StringIO from StringIO import StringIO
from edxmako.shortcuts import render_to_string from edxmako.shortcuts import render_to_string
from instructor.paidcourse_enrollment_report import PaidCourseEnrollmentReportProvider from lms.djangoapps.instructor.paidcourse_enrollment_report import PaidCourseEnrollmentReportProvider
from shoppingcart.models import ( from shoppingcart.models import (
PaidCourseRegistration, CourseRegCodeItem, InvoiceTransaction, PaidCourseRegistration, CourseRegCodeItem, InvoiceTransaction,
Invoice, CouponRedemption, RegistrationCodeRedemption, CourseRegistrationCode Invoice, CouponRedemption, RegistrationCodeRedemption, CourseRegistrationCode
......
...@@ -1792,7 +1792,7 @@ class CourseRegCodeItem(OrderItem): ...@@ -1792,7 +1792,7 @@ class CourseRegCodeItem(OrderItem):
# we should ultimately refactor code to have save_registration_code in this models.py # we should ultimately refactor code to have save_registration_code in this models.py
# file, but there's also a shared dependency on a random string generator which # file, but there's also a shared dependency on a random string generator which
# is in another PR (for another feature) # is in another PR (for another feature)
from instructor.views.api import save_registration_code from lms.djangoapps.instructor.views.api import save_registration_code
for i in range(total_registration_codes): # pylint: disable=unused-variable for i in range(total_registration_codes): # pylint: disable=unused-variable
save_registration_code(self.user, self.course_id, self.mode, order=self.order) save_registration_code(self.user, self.course_id, self.mode, order=self.order)
......
...@@ -1924,7 +1924,7 @@ INSTALLED_APPS = ( ...@@ -1924,7 +1924,7 @@ INSTALLED_APPS = (
'util', 'util',
'certificates', 'certificates',
'dashboard', 'dashboard',
'instructor', 'lms.djangoapps.instructor',
'instructor_task', 'instructor_task',
'openedx.core.djangoapps.course_groups', 'openedx.core.djangoapps.course_groups',
'bulk_email', 'bulk_email',
......
...@@ -69,7 +69,7 @@ def run(): ...@@ -69,7 +69,7 @@ def run():
# Import these here to avoid circular dependencies of the form: # Import these here to avoid circular dependencies of the form:
# edx-platform app --> DRF --> django translation --> edx-platform app # edx-platform app --> DRF --> django translation --> edx-platform app
from edx_proctoring.runtime import set_runtime_service from edx_proctoring.runtime import set_runtime_service
from instructor.services import InstructorService from lms.djangoapps.instructor.services import InstructorService
from openedx.core.djangoapps.credit.services import CreditService from openedx.core.djangoapps.credit.services import CreditService
set_runtime_service('credit', CreditService()) set_runtime_service('credit', CreditService())
......
...@@ -230,12 +230,12 @@ COURSE_URLS = patterns( ...@@ -230,12 +230,12 @@ COURSE_URLS = patterns(
'', '',
url( url(
r'^look_up_registration_code$', r'^look_up_registration_code$',
'instructor.views.registration_codes.look_up_registration_code', 'lms.djangoapps.instructor.views.registration_codes.look_up_registration_code',
name='look_up_registration_code', name='look_up_registration_code',
), ),
url( url(
r'^registration_code_details$', r'^registration_code_details$',
'instructor.views.registration_codes.registration_code_details', 'lms.djangoapps.instructor.views.registration_codes.registration_code_details',
name='registration_code_details', name='registration_code_details',
), ),
) )
...@@ -485,7 +485,7 @@ urlpatterns += ( ...@@ -485,7 +485,7 @@ urlpatterns += (
r'^courses/{}/instructor$'.format( r'^courses/{}/instructor$'.format(
settings.COURSE_ID_PATTERN, settings.COURSE_ID_PATTERN,
), ),
'instructor.views.instructor_dashboard.instructor_dashboard_2', 'lms.djangoapps.instructor.views.instructor_dashboard.instructor_dashboard_2',
name='instructor_dashboard', name='instructor_dashboard',
), ),
...@@ -494,40 +494,40 @@ urlpatterns += ( ...@@ -494,40 +494,40 @@ urlpatterns += (
r'^courses/{}/set_course_mode_price$'.format( r'^courses/{}/set_course_mode_price$'.format(
settings.COURSE_ID_PATTERN, settings.COURSE_ID_PATTERN,
), ),
'instructor.views.instructor_dashboard.set_course_mode_price', 'lms.djangoapps.instructor.views.instructor_dashboard.set_course_mode_price',
name='set_course_mode_price', name='set_course_mode_price',
), ),
url( url(
r'^courses/{}/instructor/api/'.format( r'^courses/{}/instructor/api/'.format(
settings.COURSE_ID_PATTERN, settings.COURSE_ID_PATTERN,
), ),
include('instructor.views.api_urls')), include('lms.djangoapps.instructor.views.api_urls')),
url( url(
r'^courses/{}/remove_coupon$'.format( r'^courses/{}/remove_coupon$'.format(
settings.COURSE_ID_PATTERN, settings.COURSE_ID_PATTERN,
), ),
'instructor.views.coupons.remove_coupon', 'lms.djangoapps.instructor.views.coupons.remove_coupon',
name='remove_coupon', name='remove_coupon',
), ),
url( url(
r'^courses/{}/add_coupon$'.format( r'^courses/{}/add_coupon$'.format(
settings.COURSE_ID_PATTERN, settings.COURSE_ID_PATTERN,
), ),
'instructor.views.coupons.add_coupon', 'lms.djangoapps.instructor.views.coupons.add_coupon',
name='add_coupon', name='add_coupon',
), ),
url( url(
r'^courses/{}/update_coupon$'.format( r'^courses/{}/update_coupon$'.format(
settings.COURSE_ID_PATTERN, settings.COURSE_ID_PATTERN,
), ),
'instructor.views.coupons.update_coupon', 'lms.djangoapps.instructor.views.coupons.update_coupon',
name='update_coupon', name='update_coupon',
), ),
url( url(
r'^courses/{}/get_coupon_info$'.format( r'^courses/{}/get_coupon_info$'.format(
settings.COURSE_ID_PATTERN, settings.COURSE_ID_PATTERN,
), ),
'instructor.views.coupons.get_coupon_info', 'lms.djangoapps.instructor.views.coupons.get_coupon_info',
name='get_coupon_info', name='get_coupon_info',
), ),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment