diff options
author | 2020-07-30 10:19:41 +0200 | |
---|---|---|
committer | 2020-07-30 10:19:41 +0200 | |
commit | 82f2297fbdaa98e085655a9e66540980e3081210 (patch) | |
tree | b97b66fcbc4e214577ac8a23d66297f91ba066bd | |
parent | Add a constraint in the DB model as well. (diff) |
Provide callable, not return value.
Co-authored-by: Sebastiaan Zeeff <[email protected]>
-rw-r--r-- | pydis_site/apps/api/migrations/0025_allow_custom_inserted_at_infraction_field.py | 2 |
1 files changed, 1 insertions, 1 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 9589346d..c7fac012 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 @@ -14,6 +14,6 @@ class Migration(migrations.Migration): migrations.AlterField( model_name='infraction', name='inserted_at', - field=models.DateTimeField(default=timezone.now(), 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.'), ), ] |