Reorder LMS imports using isort
This commit is contained in:
@@ -1,12 +1,13 @@
|
||||
"""
|
||||
Certificate tool in the student support app.
|
||||
"""
|
||||
from django.views.generic import View
|
||||
import urllib
|
||||
|
||||
from django.utils.decorators import method_decorator
|
||||
from django.views.generic import View
|
||||
|
||||
from edxmako.shortcuts import render_to_response
|
||||
from support.decorators import require_support_permission
|
||||
import urllib
|
||||
|
||||
|
||||
class CertificatesSupportView(View):
|
||||
|
||||
@@ -8,9 +8,9 @@ from django.db.models import Q
|
||||
from django.http import HttpResponseBadRequest
|
||||
from django.utils.decorators import method_decorator
|
||||
from django.views.generic import View
|
||||
from rest_framework.generics import GenericAPIView
|
||||
from opaque_keys import InvalidKeyError
|
||||
from opaque_keys.edx.keys import CourseKey
|
||||
from rest_framework.generics import GenericAPIView
|
||||
|
||||
from course_modes.models import CourseMode
|
||||
from edxmako.shortcuts import render_to_response
|
||||
@@ -20,7 +20,7 @@ from enrollment.serializers import ModeSerializer
|
||||
from lms.djangoapps.support.decorators import require_support_permission
|
||||
from lms.djangoapps.support.serializers import ManualEnrollmentSerializer
|
||||
from lms.djangoapps.verify_student.models import VerificationDeadline
|
||||
from student.models import CourseEnrollment, ManualEnrollmentAudit, ENROLLED_TO_ENROLLED
|
||||
from student.models import ENROLLED_TO_ENROLLED, CourseEnrollment, ManualEnrollmentAudit
|
||||
from util.json_request import JsonResponse
|
||||
|
||||
|
||||
|
||||
@@ -7,7 +7,6 @@ from django.utils.translation import ugettext_lazy as _
|
||||
from edxmako.shortcuts import render_to_response
|
||||
from support.decorators import require_support_permission
|
||||
|
||||
|
||||
SUPPORT_INDEX_URLS = [
|
||||
{
|
||||
"url": reverse_lazy("support:certificates"),
|
||||
|
||||
@@ -12,18 +12,18 @@ transition is complete, we can remove this view.
|
||||
"""
|
||||
import logging
|
||||
|
||||
from django.contrib.auth.models import User
|
||||
from django.views.generic.edit import FormView
|
||||
from django.utils.translation import ugettext as _
|
||||
from django.http import HttpResponseRedirect
|
||||
from django.contrib import messages
|
||||
from django import forms
|
||||
from django.contrib import messages
|
||||
from django.contrib.auth.models import User
|
||||
from django.http import HttpResponseRedirect
|
||||
from django.utils.decorators import method_decorator
|
||||
from django.utils.translation import ugettext as _
|
||||
from django.views.generic.edit import FormView
|
||||
from opaque_keys import InvalidKeyError
|
||||
from opaque_keys.edx.keys import CourseKey
|
||||
from opaque_keys.edx.locations import SlashSeparatedCourseKey
|
||||
|
||||
from student.models import CourseEnrollment
|
||||
from opaque_keys.edx.keys import CourseKey
|
||||
from opaque_keys import InvalidKeyError
|
||||
from opaque_keys.edx.locations import SlashSeparatedCourseKey
|
||||
from support.decorators import require_support_permission
|
||||
|
||||
log = logging.getLogger(__name__)
|
||||
|
||||
Reference in New Issue
Block a user