Skip to content

Commit

Permalink
Update validator code
Browse files Browse the repository at this point in the history
  • Loading branch information
SchrodingersGat committed Jun 13, 2024
1 parent b46e18c commit 25c1480
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/backend/InvenTree/common/validators.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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

Expand Down

0 comments on commit 25c1480

Please sign in to comment.