Skip to content

Commit 773b0cb

Browse files
committed
Avoid error on non aware datetimes
1 parent 1e83569 commit 773b0cb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tigacrafting/migrations/0001_initial.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
# Generated by Django 2.2.7 on 2020-07-15 15:04
22

3-
import datetime
43
from django.conf import settings
54
import django.core.validators
65
from django.db import migrations, models
76
import django.db.models.deletion
7+
from django.utils import timezone
88
import taggit.managers
99

1010

@@ -93,7 +93,7 @@ class Migration(migrations.Migration):
9393
('edited_user_notes', models.TextField(blank=True, help_text='Notes to display on public map', verbose_name='Public Note')),
9494
('message_for_user', models.TextField(blank=True, help_text='Message that user will receive when viewing report on phone', verbose_name='Message to User')),
9595
('status', models.IntegerField(choices=[(1, 'public'), (0, 'flagged'), (-1, 'hidden')], default=1, help_text='Whether report should be displayed on public map, flagged for further checking before public display), or hidden.', verbose_name='Status')),
96-
('last_modified', models.DateTimeField(default=datetime.datetime.now)),
96+
('last_modified', models.DateTimeField(default=timezone.now)),
9797
('validation_complete', models.BooleanField(default=False, help_text='Mark this when you have completed your review and are ready for your annotation to be displayed to public.')),
9898
('revise', models.BooleanField(default=False, help_text='For superexperts: Mark this if you want to substitute your annotation for the existing Expert annotations. Make sure to also complete your annotation form and then mark the "validation complete" box.')),
9999
('linked_id', models.CharField(blank=True, help_text='Use this field to add any other ID that you want to associate the record with (e.g., from some other database).', max_length=10, verbose_name='Linked ID')),

0 commit comments

Comments
 (0)