From 66717094387f642ba9be517f65a7bb48a9e03201 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Fri, 24 May 2024 16:24:51 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- auditlog_tests/models.py | 1 + auditlog_tests/tests.py | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/auditlog_tests/models.py b/auditlog_tests/models.py index 6ef4d59..decdc06 100644 --- a/auditlog_tests/models.py +++ b/auditlog_tests/models.py @@ -205,6 +205,7 @@ class DecimalFieldModel(models.Model): A model with a DecimalField, used to test DecimalField changes are detected properly. """ + decimal = models.DecimalField(max_digits=18, decimal_places=2, default=0) history = AuditlogHistoryField(delete_related=True) diff --git a/auditlog_tests/tests.py b/auditlog_tests/tests.py index 785445b..b520e47 100644 --- a/auditlog_tests/tests.py +++ b/auditlog_tests/tests.py @@ -4,9 +4,9 @@ import json import random import warnings from datetime import timezone +from decimal import Decimal from unittest import mock from unittest.mock import patch -from decimal import Decimal import freezegun from dateutil.tz import gettz @@ -42,8 +42,8 @@ from auditlog_tests.models import ( AutoManyRelatedModel, CharfieldTextfieldModel, ChoicesFieldModel, - DecimalFieldModel, DateTimeFieldModel, + DecimalFieldModel, JSONModel, ManyRelatedModel, ManyRelatedOtherModel,