From fee14d93491d291a0ea2faf66c9f8e1d408d7bdb Mon Sep 17 00:00:00 2001 From: David Kilias Date: Sun, 6 Dec 2020 21:37:18 +0100 Subject: [PATCH] =?UTF-8?q?money=20amount=20validation=20funktion=20mit=20?= =?UTF-8?q?erkl=C3=A4rendem=20kommentar=20versehen?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- validation_functions.py | 1 + 1 file changed, 1 insertion(+) diff --git a/validation_functions.py b/validation_functions.py index c4c270c..45c0291 100644 --- a/validation_functions.py +++ b/validation_functions.py @@ -24,6 +24,7 @@ def iso_date(field, value, error): def valid_money_amount(field, value, error): try: + # value is string, check formatting by parsing as float float(value) return True except (ValueError, TypeError):