From ba117ba0a6c2d3cdeaef33d5b8b6dd75dfc931f1 Mon Sep 17 00:00:00 2001 From: Turtle6665 <110727570+Turtle6665@users.noreply.github.com> Date: Fri, 15 Mar 2024 22:32:10 +0100 Subject: [PATCH] Changing any settings is prevented when project has existing currency (#1292) --- 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 = _(