-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add min/max weeks for course and programs api (#2478)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
- Loading branch information
1 parent
94c76dd
commit 7460bfc
Showing
7 changed files
with
116 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
48 changes: 48 additions & 0 deletions
48
cms/migrations/0040_coursepage_max_weeks_coursepage_min_weeks_and_more.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
# Generated by Django 4.2.16 on 2024-11-25 16:19 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
dependencies = [ | ||
("cms", "0039_coursepage_max_weekly_hours_and_more"), | ||
] | ||
|
||
operations = [ | ||
migrations.AddField( | ||
model_name="coursepage", | ||
name="max_weeks", | ||
field=models.SmallIntegerField( | ||
blank=True, | ||
help_text="The maximum number of weeks required to complete the course/program.", | ||
null=True, | ||
), | ||
), | ||
migrations.AddField( | ||
model_name="coursepage", | ||
name="min_weeks", | ||
field=models.SmallIntegerField( | ||
blank=True, | ||
help_text="The minimum number of weeks required to complete the course/program.", | ||
null=True, | ||
), | ||
), | ||
migrations.AddField( | ||
model_name="programpage", | ||
name="max_weeks", | ||
field=models.SmallIntegerField( | ||
blank=True, | ||
help_text="The maximum number of weeks required to complete the course/program.", | ||
null=True, | ||
), | ||
), | ||
migrations.AddField( | ||
model_name="programpage", | ||
name="min_weeks", | ||
field=models.SmallIntegerField( | ||
blank=True, | ||
help_text="The minimum number of weeks required to complete the course/program.", | ||
null=True, | ||
), | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters