Skip to content

Saleor Core: the high performance, composable, headless commerce API.

Update docsting in validate_price_amount

IKarbowiakc0736eeff307
diff --git a/saleor/graphql/core/validators.py b/saleor/graphql/core/validators.py
index 4b24c69639..b6b37c3aa1 100644
--- a/saleor/graphql/core/validators.py
+++ b/saleor/graphql/core/validators.py
@@ -21,7 +21,11 @@ def validate_one_of_args_is_in_query(arg1_name, arg1, arg2_name, arg2):
def validate_price_amount(value: "Decimal", currency: str = None):
- """Validate if price amount has appropriate number of decimal places."""
+ """Validate if price amount does not have too many decimal places.
+
+ Price amount can't have more decimal places than currency allow to.
+ """
+
if not value:
return
if currency: