demo: create Demo project without currency

This matches the default settings of both the web interface and the API
regarding currencies.
This commit is contained in:
Baptiste Jonglez 2021-10-10 23:34:38 +02:00 committed by zorun
parent dc793effce
commit 19b5b13663

View file

@ -408,7 +408,7 @@ class Project(db.Model):
name="demonstration",
password=generate_password_hash("demo"),
contact_email="demo@notmyidea.org",
default_currency="EUR",
default_currency="XXX",
)
db.session.add(project)
db.session.commit()
@ -436,7 +436,7 @@ class Project(db.Model):
bill.what = subject
bill.owers = [members[name] for name in owers]
bill.amount = amount
bill.original_currency = "EUR"
bill.original_currency = "XXX"
bill.converted_amount = amount
db.session.add(bill)