From 2d875d534d8e0d60c832f1ae704b4ed807f3842d Mon Sep 17 00:00:00 2001 From: Jennifer Richards Date: Tue, 18 Oct 2022 12:46:14 -0300 Subject: [PATCH] chore: migrate fields whose defaults changed to date_today --- .../migrations/0030_use_date_today_helper.py | 24 +++++++++++++++++++ .../migrations/0012_use_date_today_helper.py | 19 +++++++++++++++ 2 files changed, 43 insertions(+) create mode 100644 ietf/review/migrations/0030_use_date_today_helper.py create mode 100644 ietf/submit/migrations/0012_use_date_today_helper.py diff --git a/ietf/review/migrations/0030_use_date_today_helper.py b/ietf/review/migrations/0030_use_date_today_helper.py new file mode 100644 index 000000000..b006d276f --- /dev/null +++ b/ietf/review/migrations/0030_use_date_today_helper.py @@ -0,0 +1,24 @@ +# Generated by Django 2.2.28 on 2022-10-18 15:43 + +from django.db import migrations, models +import ietf.utils.timezone + + +class Migration(migrations.Migration): + + dependencies = [ + ('review', '0029_use_timezone_now_for_review_models'), + ] + + operations = [ + migrations.AlterField( + model_name='historicalunavailableperiod', + name='start_date', + field=models.DateField(default=ietf.utils.timezone.date_today, help_text="Choose the start date so that you can still do a review if it's assigned just before the start date - this usually means you should mark yourself unavailable for assignment some time before you are actually away. The default is today.", null=True), + ), + migrations.AlterField( + model_name='unavailableperiod', + name='start_date', + field=models.DateField(default=ietf.utils.timezone.date_today, help_text="Choose the start date so that you can still do a review if it's assigned just before the start date - this usually means you should mark yourself unavailable for assignment some time before you are actually away. The default is today.", null=True), + ), + ] diff --git a/ietf/submit/migrations/0012_use_date_today_helper.py b/ietf/submit/migrations/0012_use_date_today_helper.py new file mode 100644 index 000000000..3a02552f6 --- /dev/null +++ b/ietf/submit/migrations/0012_use_date_today_helper.py @@ -0,0 +1,19 @@ +# Generated by Django 2.2.28 on 2022-10-18 15:43 + +from django.db import migrations, models +import ietf.utils.timezone + + +class Migration(migrations.Migration): + + dependencies = [ + ('submit', '0011_use_timezone_now_for_submit_models'), + ] + + operations = [ + migrations.AlterField( + model_name='submission', + name='submission_date', + field=models.DateField(default=ietf.utils.timezone.date_today), + ), + ]