chore: migrate fields whose defaults changed to date_today
This commit is contained in:
parent
3220bf3c40
commit
2d875d534d
24
ietf/review/migrations/0030_use_date_today_helper.py
Normal file
24
ietf/review/migrations/0030_use_date_today_helper.py
Normal file
|
@ -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),
|
||||
),
|
||||
]
|
19
ietf/submit/migrations/0012_use_date_today_helper.py
Normal file
19
ietf/submit/migrations/0012_use_date_today_helper.py
Normal file
|
@ -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),
|
||||
),
|
||||
]
|
Loading…
Reference in a new issue