Skip to content

Commit

Permalink
Alter field from DecimalField to FloatField. (#1186)
Browse files Browse the repository at this point in the history
Co-authored-by: "Dale Cannon" <[email protected]>
  • Loading branch information
paulpepper-trade and dalecannon authored Mar 22, 2024
1 parent 91275a4 commit 7ca6977
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
18 changes: 18 additions & 0 deletions checks/migrations/0008_alter_trackedmodelcheck_processing_time.py
Original file line number Diff line number Diff line change
@@ -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),
),
]
2 changes: 1 addition & 1 deletion checks/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -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."""

Expand Down

0 comments on commit 7ca6977

Please sign in to comment.