Skip to content

Commit

Permalink
Changing any settings is prevented when project has existing currency (
Browse files Browse the repository at this point in the history
  • Loading branch information
Turtle6665 committed Mar 15, 2024
1 parent 2bb5350 commit ba117ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ihatemoney/forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ def validate_default_currency(self, field):
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 = _(
Expand Down

0 comments on commit ba117ba

Please sign in to comment.