aboutsummaryrefslogtreecommitdiffstats
path: root/pydis_site
diff options
context:
space:
mode:
authorGravatar Leon Sandøy <[email protected]>2020-07-30 10:19:41 +0200
committerGravatar GitHub <[email protected]>2020-07-30 10:19:41 +0200
commit82f2297fbdaa98e085655a9e66540980e3081210 (patch)
treeb97b66fcbc4e214577ac8a23d66297f91ba066bd /pydis_site
parentAdd a constraint in the DB model as well. (diff)
Provide callable, not return value.
Co-authored-by: Sebastiaan Zeeff <[email protected]>
Diffstat (limited to 'pydis_site')
-rw-r--r--pydis_site/apps/api/migrations/0025_allow_custom_inserted_at_infraction_field.py2
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.'),
),
]