Removed the unused debug logging in the record form validation in the accounting application.
This commit is contained in:
		| @@ -93,7 +93,6 @@ class RecordForm(forms.Form): | |||||||
|             except forms.ValidationError as e: |             except forms.ValidationError as e: | ||||||
|                 errors.append(e) |                 errors.append(e) | ||||||
|         if errors: |         if errors: | ||||||
|             print(errors) |  | ||||||
|             raise forms.ValidationError(errors) |             raise forms.ValidationError(errors) | ||||||
|  |  | ||||||
|     def _validate_transaction(self): |     def _validate_transaction(self): | ||||||
| @@ -132,7 +131,6 @@ class RecordForm(forms.Form): | |||||||
|         if "account" in self.errors: |         if "account" in self.errors: | ||||||
|             return |             return | ||||||
|         if self.is_credit: |         if self.is_credit: | ||||||
|             print(self.data["account"]) |  | ||||||
|             if not re.match("^([123489]|7[1234])", self.data["account"]): |             if not re.match("^([123489]|7[1234])", self.data["account"]): | ||||||
|                 error = forms.ValidationError( |                 error = forms.ValidationError( | ||||||
|                     pgettext("Accounting|", |                     pgettext("Accounting|", | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user