resolve naive datetime warnings
diff --git a/planetstack/hpc/migrations/0001_initial.py b/planetstack/hpc/migrations/0001_initial.py
index fc2bc4f..c2e55b1 100644
--- a/planetstack/hpc/migrations/0001_initial.py
+++ b/planetstack/hpc/migrations/0001_initial.py
@@ -4,7 +4,7 @@
from django.db import models, migrations
import datetime
from django.conf import settings
-
+import django.utils.timezone
class Migration(migrations.Migration):
@@ -30,8 +30,8 @@
name='CDNPrefix',
fields=[
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
- ('created', models.DateTimeField(default=datetime.datetime.now, auto_now_add=True)),
- ('updated', models.DateTimeField(default=datetime.datetime.now, auto_now=True)),
+ ('created', models.DateTimeField(default=django.utils.timezone.now, auto_now_add=True)),
+ ('updated', models.DateTimeField(default=django.utils.timezone.now, auto_now=True)),
('enacted', models.DateTimeField(default=None, null=True)),
('backend_status', models.CharField(default=b'Provisioning in progress', max_length=140)),
('deleted', models.BooleanField(default=False)),
@@ -48,8 +48,8 @@
name='ContentProvider',
fields=[
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
- ('created', models.DateTimeField(default=datetime.datetime.now, auto_now_add=True)),
- ('updated', models.DateTimeField(default=datetime.datetime.now, auto_now=True)),
+ ('created', models.DateTimeField(default=django.utils.timezone.now, auto_now_add=True)),
+ ('updated', models.DateTimeField(default=django.utils.timezone.now, auto_now=True)),
('enacted', models.DateTimeField(default=None, null=True)),
('backend_status', models.CharField(default=b'Provisioning in progress', max_length=140)),
('deleted', models.BooleanField(default=False)),
@@ -76,8 +76,8 @@
name='OriginServer',
fields=[
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
- ('created', models.DateTimeField(default=datetime.datetime.now, auto_now_add=True)),
- ('updated', models.DateTimeField(default=datetime.datetime.now, auto_now=True)),
+ ('created', models.DateTimeField(default=django.utils.timezone.now, auto_now_add=True)),
+ ('updated', models.DateTimeField(default=django.utils.timezone.now, auto_now=True)),
('enacted', models.DateTimeField(default=None, null=True)),
('backend_status', models.CharField(default=b'Provisioning in progress', max_length=140)),
('deleted', models.BooleanField(default=False)),
@@ -98,8 +98,8 @@
name='ServiceProvider',
fields=[
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
- ('created', models.DateTimeField(default=datetime.datetime.now, auto_now_add=True)),
- ('updated', models.DateTimeField(default=datetime.datetime.now, auto_now=True)),
+ ('created', models.DateTimeField(default=django.utils.timezone.now, auto_now_add=True)),
+ ('updated', models.DateTimeField(default=django.utils.timezone.now, auto_now=True)),
('enacted', models.DateTimeField(default=None, null=True)),
('backend_status', models.CharField(default=b'Provisioning in progress', max_length=140)),
('deleted', models.BooleanField(default=False)),