Revised the coding style of the NeedSomeCurrencies validator.
This commit is contained in:
parent
d9ecf51c6d
commit
5c6bfd8b49
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user