From 3a933e003da16d69ac912e37c34883593a41566c Mon Sep 17 00:00:00 2001 From: Turtle6665 <110727570+Turtle6665@users.noreply.github.com> Date: Tue, 12 Mar 2024 21:08:46 +0100 Subject: [PATCH] update default_currency check #1291 --- ihatemoney/forms.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ihatemoney/forms.py b/ihatemoney/forms.py index c0f87507..7585a521 100644 --- a/ihatemoney/forms.py +++ b/ihatemoney/forms.py @@ -195,7 +195,7 @@ class EditProjectForm(FlaskForm): raise ValidationError(msg) if ( project is not None - and field.data != CurrencyConverter.no_currency + and field.data != project.default_currency and project.has_bills() ): msg = _(