From 0f8f2b783870ed0c1f91c2c9ddc6d0c16f8256f1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BE=9D=E7=91=AA=E8=B2=93?= Date: Sun, 2 Aug 2020 03:27:41 +0800 Subject: [PATCH] Removed the unused debug logging in the record form validation in the accounting application. --- accounting/forms.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/accounting/forms.py b/accounting/forms.py index 4dcb298..65df551 100644 --- a/accounting/forms.py +++ b/accounting/forms.py @@ -93,7 +93,6 @@ class RecordForm(forms.Form): except forms.ValidationError as e: errors.append(e) if errors: - print(errors) raise forms.ValidationError(errors) def _validate_transaction(self): @@ -132,7 +131,6 @@ class RecordForm(forms.Form): if "account" in self.errors: return if self.is_credit: - print(self.data["account"]) if not re.match("^([123489]|7[1234])", self.data["account"]): error = forms.ValidationError( pgettext("Accounting|",