From 26a4d3860dbc947adf00b4e91bc926410e49cfab Mon Sep 17 00:00:00 2001 From: Reckless_Satoshi Date: Sun, 9 Apr 2023 14:37:30 -0700 Subject: [PATCH] Fix overflow by IRT on exchange_rate DecimalField --- api/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/models.py b/api/models.py index 2d702ed2..e8715ccb 100644 --- a/api/models.py +++ b/api/models.py @@ -35,7 +35,7 @@ class Currency(models.Model): choices=currency_choices, null=False, unique=True ) exchange_rate = models.DecimalField( - max_digits=14, + max_digits=18, decimal_places=4, default=None, null=True,