From e0355b2af1745775afbf9377e730c6830a0c5c05 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BE=9D=E7=91=AA=E8=B2=93?= Date: Thu, 23 Mar 2023 00:09:57 +0800 Subject: [PATCH] Revised the error message of the CurrentAccountExists and AccountNotCurrent validators. --- src/accounting/option/forms.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/accounting/option/forms.py b/src/accounting/option/forms.py index 3890e66..4285daf 100644 --- a/src/accounting/option/forms.py +++ b/src/accounting/option/forms.py @@ -40,7 +40,7 @@ class CurrentAccountExists: return if Account.find_by_code(field.data) is None: raise ValidationError(lazy_gettext( - "The current account does not exist.")) + "The account does not exist.")) class AccountNotCurrent: @@ -51,7 +51,7 @@ class AccountNotCurrent: return if field.data[:2] not in {"11", "12", "21", "22"}: raise ValidationError(lazy_gettext( - "The current account does not exist.")) + "This is not a current account.")) class NotStartPayableFromExpense: