From e70114dfded579cec72f57f6490f134e520ee7b9 Mon Sep 17 00:00:00 2001 From: Johannes Christ Date: Wed, 9 Jan 2019 20:51:48 +0100 Subject: Use proper default for infraction insertion date. --- ...se_proper_default_for_infraction_insertion_date.py | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 api/migrations/0026_use_proper_default_for_infraction_insertion_date.py (limited to 'api/migrations') diff --git a/api/migrations/0026_use_proper_default_for_infraction_insertion_date.py b/api/migrations/0026_use_proper_default_for_infraction_insertion_date.py new file mode 100644 index 00000000..56f3b2b8 --- /dev/null +++ b/api/migrations/0026_use_proper_default_for_infraction_insertion_date.py @@ -0,0 +1,19 @@ +# Generated by Django 2.1.5 on 2019-01-09 19:50 + +from django.db import migrations, models +import django.utils.timezone + + +class Migration(migrations.Migration): + + dependencies = [ + ('api', '0025_allow_custom_inserted_at_infraction_field'), + ] + + operations = [ + migrations.AlterField( + model_name='infraction', + name='inserted_at', + field=models.DateTimeField(default=django.utils.timezone.now, help_text='The date and time of the creation of this infraction.'), + ), + ] -- cgit v1.2.3