diff options
| author | Étienne Loks <etienne.loks@iggdrasil.net> | 2026-03-18 12:06:04 +0100 |
|---|---|---|
| committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2026-03-18 12:34:33 +0100 |
| commit | 99021ffc60cb67b5af7725069adf06fe2219d22d (patch) | |
| tree | eb08a2a6d2bcb4628e134995b730ef7f29e55243 /archaeological_finds/migrations/0101_squashed.py | |
| parent | d760e9f87fe040ab33dcdb942303d39fbf83a9c8 (diff) | |
| download | Ishtar-99021ffc60cb67b5af7725069adf06fe2219d22d.tar.bz2 Ishtar-99021ffc60cb67b5af7725069adf06fe2219d22d.zip | |
🐛 fix naive datetime in migrations
Diffstat (limited to 'archaeological_finds/migrations/0101_squashed.py')
| -rw-r--r-- | archaeological_finds/migrations/0101_squashed.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/archaeological_finds/migrations/0101_squashed.py b/archaeological_finds/migrations/0101_squashed.py index aa70e2e83..9b6dce0a1 100644 --- a/archaeological_finds/migrations/0101_squashed.py +++ b/archaeological_finds/migrations/0101_squashed.py @@ -10,6 +10,7 @@ import django.contrib.postgres.search import django.core.validators from django.db import migrations, models import django.db.models.deletion +import django.utils.timezone import ishtar_common.models import ishtar_common.models_common import ishtar_common.utils @@ -392,7 +393,7 @@ class Migration(migrations.Migration): ('goal', models.TextField(blank=True, null=True, verbose_name='Goal')), ('start_date', models.DateField(blank=True, null=True, verbose_name='Start date')), ('end_date', models.DateField(blank=True, null=True, verbose_name='Closing date')), - ('creation_date', models.DateTimeField(default=datetime.datetime.now)), + ('creation_date', models.DateTimeField(default=django.utils.timezone.now)), ('estimated_cost', models.FloatField(blank=True, null=True, verbose_name='Estimated cost')), ('quoted_cost', models.FloatField(blank=True, null=True, verbose_name='Quoted cost')), ('realized_cost', models.FloatField(blank=True, null=True, verbose_name='Realized cost')), @@ -535,7 +536,7 @@ class Migration(migrations.Migration): ('history_m2m', django.contrib.postgres.fields.jsonb.JSONField(blank=True, default={})), ('need_update', models.BooleanField(default=False, verbose_name='Need update')), ('locked', models.BooleanField(default=False, verbose_name='Item locked for edition')), - ('history_date', models.DateTimeField(default=datetime.datetime.now)), + ('history_date', models.DateTimeField(default=django.utils.timezone.now)), ('start_date', models.DateField(verbose_name='Start date')), ('end_date', models.DateField(verbose_name='End date')), ], @@ -587,7 +588,7 @@ class Migration(migrations.Migration): ('goal', models.TextField(blank=True, null=True, verbose_name='Goal')), ('start_date', models.DateField(blank=True, null=True, verbose_name='Start date')), ('end_date', models.DateField(blank=True, null=True, verbose_name='Closing date')), - ('creation_date', models.DateTimeField(default=datetime.datetime.now)), + ('creation_date', models.DateTimeField(default=django.utils.timezone.now)), ('estimated_cost', models.FloatField(blank=True, null=True, verbose_name='Estimated cost')), ('quoted_cost', models.FloatField(blank=True, null=True, verbose_name='Quoted cost')), ('realized_cost', models.FloatField(blank=True, null=True, verbose_name='Realized cost')), |
