mirror of
https://github.com/spiral-project/ihatemoney.git
synced 2025-04-29 09:52:36 +02:00
Adapt code for https://github.com/wtforms/wtforms/pull/288
This commit is contained in:
parent
901522e8e7
commit
6c43ffaac4
1 changed files with 1 additions and 1 deletions
|
@ -44,7 +44,7 @@ def get_billform_for(project, set_default=True, **kwargs):
|
||||||
|
|
||||||
"""
|
"""
|
||||||
form = BillForm(**kwargs)
|
form = BillForm(**kwargs)
|
||||||
if form.original_currency.data == "None":
|
if form.original_currency.data is None:
|
||||||
form.original_currency.data = project.default_currency
|
form.original_currency.data = project.default_currency
|
||||||
|
|
||||||
show_no_currency = form.original_currency.data == CurrencyConverter.no_currency
|
show_no_currency = form.original_currency.data == CurrencyConverter.no_currency
|
||||||
|
|
Loading…
Reference in a new issue