Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixing django 2.1 probs in student management commands #23587

Merged
merged 4 commits into from
Apr 3, 2020
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Requiring at least one args in a mutually exclusive group to be set
bulk_change_enrollment requires one of agrs: org or course to be set
for it to function correctly.
  • Loading branch information
jinder1s committed Apr 2, 2020
commit 76ea33960e8f6af8ff5a42cd3dd5835ac333e7ce
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ class Command(BaseCommand):
"""

def add_arguments(self, parser):
group = parser.add_mutually_exclusive_group()
group = parser.add_mutually_exclusive_group(required=True)
group.add_argument(
'-c', '--course',
help='The course to change enrollments in')
Expand Down Expand Up @@ -64,7 +64,6 @@ def handle(self, *args, **options):
to_mode = options['to_mode']
commit = options['commit']
course_keys = []

if course_id:
try:
course_key = CourseKey.from_string(course_id)
Expand Down