Skip to content
Snippets Groups Projects
Unverified Commit 829855f6 authored by Ayub's avatar Ayub Committed by GitHub
Browse files

Merge pull request #21070 from edx/INCR-406

INCR-406 python3 compatibility
parents 00717a5f 8a7a39af
No related branches found
No related tags found
No related merge requests found
Showing with 27 additions and 13 deletions
......@@ -8,15 +8,17 @@ the following:
./manage.py lms anonymized_id_mapping COURSE_ID
"""
from __future__ import absolute_import
import csv
from django.contrib.auth.models import User
from django.core.management.base import BaseCommand, CommandError
from student.models import anonymous_id_for_user
from opaque_keys.edx.keys import CourseKey
from six import text_type
from student.models import anonymous_id_for_user
class Command(BaseCommand):
"""Add our handler to the space where django-admin looks up commands."""
......
"""Management command to change many user enrollments at once."""
from __future__ import absolute_import
import logging
from django.core.management.base import BaseCommand, CommandError
......
from __future__ import absolute_import
import logging
import unicodecsv
......@@ -9,7 +11,6 @@ from opaque_keys.edx.keys import CourseKey
from student.models import CourseEnrollment, User
logger = logging.getLogger(__name__) # pylint: disable=invalid-name
......
from __future__ import print_function
from __future__ import absolute_import, print_function
import csv
import os
......
""" Command line script to change credit course eligibility deadline. """
from __future__ import absolute_import
import logging
from datetime import datetime, timedelta
from course_modes.models import CourseMode
from django.core.management.base import BaseCommand
from opaque_keys import InvalidKeyError
from opaque_keys.edx.keys import CourseKey
from student.models import CourseEnrollment, User
from course_modes.models import CourseMode
from openedx.core.djangoapps.credit.models import CreditEligibility
from student.models import CourseEnrollment, User
logger = logging.getLogger(__name__) # pylint: disable=invalid-name
......
"""
A script to create some dummy users
"""
from __future__ import print_function
from __future__ import absolute_import, print_function
import uuid
from django.core.management.base import BaseCommand
from student.models import CourseEnrollment
from opaque_keys.edx.keys import CourseKey
from six.moves import range
from student.forms import AccountCreationForm
from student.helpers import do_create_account
from student.models import CourseEnrollment
def make_random_form():
......
......@@ -2,9 +2,13 @@
Command to delete all rows from the student_historicalcourseenrollment table.
"""
from __future__ import absolute_import
import logging
from openedx.core.djangoapps.util.row_delete import BaseDeletionCommand, delete_rows
from student.models import CourseEnrollment
from openedx.core.djangoapps.util.row_delete import delete_rows, BaseDeletionCommand
log = logging.getLogger(__name__)
......
"""Management command to grant or revoke superuser access for one or more users"""
from __future__ import print_function
from __future__ import absolute_import, print_function
from django.contrib.auth.models import User
from django.core.management.base import BaseCommand
......
"""
Transfer Student Management Command
"""
from __future__ import print_function, unicode_literals
from __future__ import absolute_import, print_function, unicode_literals
from textwrap import dedent
from six import text_type
from django.contrib.auth.models import User
from django.db import transaction
from opaque_keys.edx.keys import CourseKey
from six import text_type
from shoppingcart.models import CertificateItem
from student.models import CourseEnrollment
from track.management.tracked_command import TrackedCommand
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment