From 25c14802dd51936ea0bcc55992bc144daa444da5 Mon Sep 17 00:00:00 2001 From: Oliver Walters Date: Thu, 13 Jun 2024 01:43:53 +0000 Subject: [PATCH] Update validator code --- src/backend/InvenTree/common/validators.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/backend/InvenTree/common/validators.py b/src/backend/InvenTree/common/validators.py index af8e5eb8bbcc..d97983f5a342 100644 --- a/src/backend/InvenTree/common/validators.py +++ b/src/backend/InvenTree/common/validators.py @@ -34,7 +34,7 @@ def validate_decimal_places_min(value): """Validator for PRICING_DECIMAL_PLACES_MIN setting.""" try: value = int(value) - places_max = int(get_global_setting('PRICING_DECIMAL_PLACES')) + places_max = int(get_global_setting('PRICING_DECIMAL_PLACES', create=False)) except Exception: return @@ -46,7 +46,7 @@ def validate_decimal_places_max(value): """Validator for PRICING_DECIMAL_PLACES_MAX setting.""" try: value = int(value) - places_min = int(get_global_setting('PRICING_DECIMAL_PLACES_MIN')) + places_min = int(get_global_setting('PRICING_DECIMAL_PLACES_MIN', create=False)) except Exception: return