Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Aug 5, 2024
1 parent 6b46266 commit 075eb02
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@

def deactivate_program_enrollments(apps, schema_editor):
"""Deactivate all Enrollments for this not yet live program 18.03x Differential Equations
and activate back for Differential Calculus"""
and activate back for Differential Calculus
"""
ProgramEnrollments = apps.get_model("courses", "ProgramEnrollment")
enrollments = ProgramEnrollments.objects.filter(
program__readable_id="program-v1:MITxT+18.01x"
Expand All @@ -21,6 +22,7 @@ def deactivate_program_enrollments(apps, schema_editor):
enrollment.active = False
enrollment.save()


class Migration(migrations.Migration):
dependencies = [
("courses", "0052_deactivate_enrollments"),
Expand Down

0 comments on commit 075eb02

Please sign in to comment.