Revised the coding style of the NeedSomeCurrencies validator.
This commit is contained in:
1 parent
d9ecf51c6d
commit
5c6bfd8b49
1 file changed
+1
-2
@@ -51,8 +51,7 @@ class NeedSomeCurrencies:
|
||||
|
||||
def __call__(self, form: FlaskForm, field: FieldList) -> None:
|
||||
if len(field) == 0:
|
||||
raise ValidationError(lazy_gettext(
|
||||
"Please add some currencies."))
|
||||
raise ValidationError(lazy_gettext("Please add some currencies."))
|
||||
|
||||
|
||||
class TransactionForm(FlaskForm):
|
||||
|
||||
Reference in new issue
Block a user