From 6c43ffaac4d3ad2e13c30d1e4945a6e5010afb5c Mon Sep 17 00:00:00 2001 From: Glandos Date: Wed, 9 Jun 2021 23:32:33 +0200 Subject: [PATCH] Adapt code for https://github.com/wtforms/wtforms/pull/288 --- ihatemoney/forms.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ihatemoney/forms.py b/ihatemoney/forms.py index e4a32d09..f6e89611 100644 --- a/ihatemoney/forms.py +++ b/ihatemoney/forms.py @@ -44,7 +44,7 @@ def get_billform_for(project, set_default=True, **kwargs): """ form = BillForm(**kwargs) - if form.original_currency.data == "None": + if form.original_currency.data is None: form.original_currency.data = project.default_currency show_no_currency = form.original_currency.data == CurrencyConverter.no_currency