Skip to content

Commit bc27494

Browse files
authored
Don't restrict deferrals after the upgrade deadline (#3087)
1 parent dfb2d5c commit bc27494

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

courses/api.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -437,10 +437,6 @@ def defer_enrollment( # noqa: C901
437437
f"Cannot defer to a course run of a different course ('{from_enrollment.run.course.title}' -> '{to_run.course.title}'). " # noqa: EM102
438438
"Set force=True to defer anyway."
439439
)
440-
if to_run.upgrade_deadline and to_run.upgrade_deadline < now_in_utc():
441-
raise ValidationError(
442-
f"Cannot defer to a course run whose upgrade deadline has passed (run: {to_run.courseware_id})." # noqa: EM102
443-
)
444440

445441
if already_deferred_from:
446442
# check if user was already enrolled in verified track

0 commit comments

Comments
 (0)