diff --git a/program/migrations/0054_alter_schedule_last_date.py b/program/migrations/0054_alter_schedule_last_date.py new file mode 100644 index 0000000000000000000000000000000000000000..1e6b9a40898dfc9f181e0440299abe9ffff9b735 --- /dev/null +++ b/program/migrations/0054_alter_schedule_last_date.py @@ -0,0 +1,18 @@ +# Generated by Django 3.2.18 on 2023-04-16 22:03 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('program', '0053_auto_20230411_1855'), + ] + + operations = [ + migrations.AlterField( + model_name='schedule', + name='last_date', + field=models.DateField(help_text='End date of schedule.', null=True), + ), + ] diff --git a/program/models.py b/program/models.py index 15ff88631c07996c03bf95c54718d591b0ab0dfd..62acfbc75d9d0e7f5d0858539885dbca63bae2cd 100644 --- a/program/models.py +++ b/program/models.py @@ -348,7 +348,7 @@ class Schedule(models.Model): default=False, help_text="Whether the schedule is a repetition.", ) - last_date = models.DateField(help_text="End date of schedule.") + last_date = models.DateField(help_text="End date of schedule.", null=True) rrule = models.ForeignKey( RRule, on_delete=models.CASCADE,