X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/0def7bcb965d56cfa88c7e5a1676905b02f84ab6..b09ddc60e118508d96906f26ecb0e1709ca89f1b:/src/api/migrations/0004_bookuserdata_last_changed.py diff --git a/src/api/migrations/0004_bookuserdata_last_changed.py b/src/api/migrations/0004_bookuserdata_last_changed.py index f42c4054e..fe6f9400d 100644 --- a/src/api/migrations/0004_bookuserdata_last_changed.py +++ b/src/api/migrations/0004_bookuserdata_last_changed.py @@ -1,9 +1,8 @@ -# -*- coding: utf-8 -*- -from __future__ import unicode_literals - -from django.db import migrations, models +# This file is part of Wolne Lektury, licensed under GNU Affero GPLv3 or later. +# Copyright © Fundacja Wolne Lektury. See NOTICE for more information. +# import datetime -from django.utils.timezone import utc +from django.db import migrations, models class Migration(migrations.Migration): @@ -16,7 +15,7 @@ class Migration(migrations.Migration): migrations.AddField( model_name='bookuserdata', name='last_changed', - field=models.DateTimeField(default=datetime.datetime(2018, 11, 28, 14, 41, 2, 673054, tzinfo=utc), auto_now=True), + field=models.DateTimeField(default=datetime.datetime(2018, 11, 28, 14, 41, 2, 673054, tzinfo=datetime.timezone.utc), auto_now=True), preserve_default=False, ), ]