diff options
author | 2019-01-09 20:51:48 +0100 | |
---|---|---|
committer | 2019-01-09 20:51:48 +0100 | |
commit | e70114dfded579cec72f57f6490f134e520ee7b9 (patch) | |
tree | c81609623e19846a5a43962e2de67ec791a900c6 /api/migrations | |
parent | Allow custom `inserted_at` infraction field for now. (diff) |
Use proper default for infraction insertion date.
Diffstat (limited to 'api/migrations')
-rw-r--r-- | api/migrations/0026_use_proper_default_for_infraction_insertion_date.py | 19 |
1 files changed, 19 insertions, 0 deletions
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.'), + ), + ] |