Reorder LMS imports using isort
This commit is contained in:
@@ -1,8 +1,9 @@
|
||||
from optparse import make_option
|
||||
|
||||
from django.core.management.base import BaseCommand, CommandError
|
||||
from django_comment_common.models import Role
|
||||
from django.contrib.auth.models import User
|
||||
from django.core.management.base import BaseCommand, CommandError
|
||||
|
||||
from django_comment_common.models import Role
|
||||
|
||||
|
||||
class Command(BaseCommand):
|
||||
|
||||
@@ -6,8 +6,8 @@ Enrollments.
|
||||
"""
|
||||
from django.core.management.base import BaseCommand, CommandError
|
||||
|
||||
from student.models import CourseEnrollment
|
||||
from django_comment_common.models import assign_default_role_on_enrollment
|
||||
from student.models import CourseEnrollment
|
||||
|
||||
|
||||
class Command(BaseCommand):
|
||||
|
||||
@@ -6,8 +6,8 @@ Enrollments.
|
||||
"""
|
||||
from django.core.management.base import BaseCommand, CommandError
|
||||
|
||||
from student.models import CourseEnrollment
|
||||
from django_comment_common.models import assign_default_role_on_enrollment
|
||||
from student.models import CourseEnrollment
|
||||
|
||||
|
||||
class Command(BaseCommand):
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
"""
|
||||
Reload forum (comment client) users from existing users.
|
||||
"""
|
||||
from django.contrib.auth.models import User
|
||||
from django.core.management.base import BaseCommand
|
||||
|
||||
from django.contrib.auth.models import User
|
||||
import lms.lib.comment_client as cc
|
||||
|
||||
|
||||
|
||||
@@ -2,9 +2,10 @@
|
||||
Management command to seed default permissions and roles.
|
||||
"""
|
||||
from django.core.management.base import BaseCommand, CommandError
|
||||
from django_comment_common.utils import seed_permissions_roles
|
||||
from opaque_keys.edx.keys import CourseKey
|
||||
|
||||
from django_comment_common.utils import seed_permissions_roles
|
||||
|
||||
|
||||
class Command(BaseCommand):
|
||||
args = 'course_id'
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
from django.core.management.base import BaseCommand, CommandError
|
||||
from django.contrib.auth.models import User
|
||||
from django.core.management.base import BaseCommand, CommandError
|
||||
|
||||
|
||||
class Command(BaseCommand):
|
||||
|
||||
@@ -3,8 +3,9 @@ One-off script to sync all user information to the
|
||||
discussion service (later info will be synced automatically)
|
||||
"""
|
||||
|
||||
from django.core.management.base import BaseCommand
|
||||
from django.contrib.auth.models import User
|
||||
from django.core.management.base import BaseCommand
|
||||
|
||||
import lms.lib.comment_client as cc
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user