Removed the unused debug logging in the record form validation in the accounting application.

This commit is contained in:
依瑪貓 2020-08-02 03:27:41 +08:00
parent f7c62fcc66
commit 0f8f2b7838

View File

@ -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|",