mirror of
https://github.com/spiral-project/ihatemoney.git
synced 2025-04-28 17:32:38 +02:00
Changing any settings is prevented when project has existing currency (#1292)
(cherry picked from commit ba117ba0a6
)
This commit is contained in:
parent
ade8fc2bb6
commit
4325c53802
1 changed files with 1 additions and 1 deletions
|
@ -195,7 +195,7 @@ class EditProjectForm(FlaskForm):
|
||||||
raise ValidationError(msg)
|
raise ValidationError(msg)
|
||||||
if (
|
if (
|
||||||
project is not None
|
project is not None
|
||||||
and field.data != CurrencyConverter.no_currency
|
and field.data != project.default_currency
|
||||||
and project.has_bills()
|
and project.has_bills()
|
||||||
):
|
):
|
||||||
msg = _(
|
msg = _(
|
||||||
|
|
Loading…
Reference in a new issue