diff --git a/courses/forms.py b/courses/forms.py index 822e161150..ddb0ef5f6c 100644 --- a/courses/forms.py +++ b/courses/forms.py @@ -411,6 +411,10 @@ class Meta: "live", "requirements", "availability", + "start_date", + "end_date", + "enrollment_start", + "enrollment_end", ] class Media: diff --git a/courses/migrations/0057_alter_program_end_date_alter_program_start_date.py b/courses/migrations/0057_alter_program_end_date_alter_program_start_date.py new file mode 100644 index 0000000000..459307a2c1 --- /dev/null +++ b/courses/migrations/0057_alter_program_end_date_alter_program_start_date.py @@ -0,0 +1,22 @@ +# Generated by Django 4.2.15 on 2024-09-26 17:16 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + dependencies = [ + ("courses", "0056_program_end_date_program_enrollment_end_and_more"), + ] + + operations = [ + migrations.AlterField( + model_name="program", + name="end_date", + field=models.DateTimeField(blank=True, db_index=True, null=True), + ), + migrations.AlterField( + model_name="program", + name="start_date", + field=models.DateTimeField(blank=True, db_index=True, null=True), + ), + ] diff --git a/courses/models.py b/courses/models.py index 50fcc0dbca..5378dcf4f5 100644 --- a/courses/models.py +++ b/courses/models.py @@ -163,8 +163,8 @@ class Meta: ) 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) + start_date = models.DateTimeField(null=True, blank=True, db_index=True) + end_date = models.DateTimeField(null=True, blank=True, db_index=True) @cached_property def page(self):