Commit 3f7113f1 authored by Andrew Godwin's avatar Andrew Godwin
Browse files

Fix timezone warnings if USE_TZ=True

parent 9c6d57ef
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
import datetime
from django.db import models
from django.db.models.loading import BaseAppCache
from django.utils.timezone import now


class MigrationRecorder(object):
@@ -19,7 +19,7 @@ class MigrationRecorder(object):
    class Migration(models.Model):
        app = models.CharField(max_length=255)
        name = models.CharField(max_length=255)
        applied = models.DateTimeField(default=datetime.datetime.utcnow)
        applied = models.DateTimeField(default=now)
        class Meta:
            app_cache = BaseAppCache()
            app_label = "migrations"