From 7ca6977b8268d579782df38b5e6fd928963c0095 Mon Sep 17 00:00:00 2001 From: Paul Pepper <85895113+paulpepper-trade@users.noreply.github.com> Date: Fri, 22 Mar 2024 10:31:49 +0000 Subject: [PATCH] Alter field from DecimalField to FloatField. (#1186) Co-authored-by: "Dale Cannon" --- ..._alter_trackedmodelcheck_processing_time.py | 18 ++++++++++++++++++ checks/models.py | 2 +- 2 files changed, 19 insertions(+), 1 deletion(-) create mode 100644 checks/migrations/0008_alter_trackedmodelcheck_processing_time.py diff --git a/checks/migrations/0008_alter_trackedmodelcheck_processing_time.py b/checks/migrations/0008_alter_trackedmodelcheck_processing_time.py new file mode 100644 index 000000000..6dcb9acf5 --- /dev/null +++ b/checks/migrations/0008_alter_trackedmodelcheck_processing_time.py @@ -0,0 +1,18 @@ +# Generated by Django 4.2.10 on 2024-03-21 18:05 + +from django.db import migrations +from django.db import models + + +class Migration(migrations.Migration): + dependencies = [ + ("checks", "0007_transactioncheck_timestamps"), + ] + + operations = [ + migrations.AlterField( + model_name="trackedmodelcheck", + name="processing_time", + field=models.FloatField(null=True), + ), + ] diff --git a/checks/models.py b/checks/models.py index 0bec9a901..2904084b4 100644 --- a/checks/models.py +++ b/checks/models.py @@ -143,7 +143,7 @@ class TrackedModelCheck(TimestampedMixin): message = fields.TextField(null=True) """The text content returned by the check, if any.""" - processing_time = fields.DecimalField(null=True, decimal_places=4, max_digits=6) + processing_time = fields.FloatField(null=True) """Added processing_time used to record the time taken to process a rule in seconds."""