diff options
author | 2020-07-16 12:59:43 +0200 | |
---|---|---|
committer | 2020-07-16 12:59:43 +0200 | |
commit | 4470afc5b48fa1c71ed717372acad5414e6ec0ad (patch) | |
tree | 31f1fbf956a6c59c90f8463231bdf45a71162720 | |
parent | Return id from the AllowListSerializer. (diff) |
Fix a bug in an old migration.
https://github.com/python-discord/site/issues/305
-rw-r--r-- | pydis_site/apps/api/migrations/0025_allow_custom_inserted_at_infraction_field.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pydis_site/apps/api/migrations/0025_allow_custom_inserted_at_infraction_field.py b/pydis_site/apps/api/migrations/0025_allow_custom_inserted_at_infraction_field.py index 0c02cb91..9589346d 100644 --- a/pydis_site/apps/api/migrations/0025_allow_custom_inserted_at_infraction_field.py +++ b/pydis_site/apps/api/migrations/0025_allow_custom_inserted_at_infraction_field.py @@ -1,7 +1,7 @@ # Generated by Django 2.1.4 on 2019-01-06 16:01 -import datetime from django.db import migrations, models +from django.utils import timezone class Migration(migrations.Migration): @@ -14,6 +14,6 @@ class Migration(migrations.Migration): migrations.AlterField( model_name='infraction', name='inserted_at', - field=models.DateTimeField(default=datetime.datetime.utcnow, help_text='The date and time of the creation of this infraction.'), + field=models.DateTimeField(default=timezone.now(), help_text='The date and time of the creation of this infraction.'), ), ] |