diff --git a/courses/migrations/0056_program_end_date_program_enrollment_end_and_more.py b/courses/migrations/0056_program_end_date_program_enrollment_end_and_more.py new file mode 100644 index 0000000000..31e524a454 --- /dev/null +++ b/courses/migrations/0056_program_end_date_program_enrollment_end_and_more.py @@ -0,0 +1,33 @@ +# Generated by Django 4.2 on 2024-09-21 00:17 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('courses', '0055_rename_programrequirement_index'), + ] + + operations = [ + migrations.AddField( + model_name='program', + name='end_date', + field=models.DateField(blank=True, db_index=True, null=True), + ), + migrations.AddField( + model_name='program', + name='enrollment_end', + field=models.DateTimeField(blank=True, db_index=True, null=True), + ), + migrations.AddField( + model_name='program', + name='enrollment_start', + field=models.DateTimeField(blank=True, db_index=True, null=True), + ), + migrations.AddField( + model_name='program', + name='start_date', + field=models.DateField(blank=True, db_index=True, null=True), + ), + ] diff --git a/courses/models.py b/courses/models.py index 227eaecc0b..50fcc0dbca 100644 --- a/courses/models.py +++ b/courses/models.py @@ -161,6 +161,10 @@ class Meta: availability = models.CharField( choices=AVAILABILITY_CHOICES, default=AVAILABILITY_ANYTIME, max_length=255 ) + enrollment_start = models.DateTimeField(null=True, blank=True, db_index=True) + enrollment_end = models.DateTimeField(null=True, blank=True, db_index=True) + start_date = models.DateField(null=True, blank=True, db_index=True) + end_date = models.DateField(null=True, blank=True, db_index=True) @cached_property def page(self):