From c79c60423a344ac00af54edf3f7581c11d4fa16f Mon Sep 17 00:00:00 2001 From: Sungho Cho Date: Fri, 6 Dec 2019 16:13:49 -0500 Subject: [PATCH] Added new fields to to_serialize() --- ihatemoney/models.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ihatemoney/models.py b/ihatemoney/models.py index a69da732..0f4c19de 100644 --- a/ihatemoney/models.py +++ b/ihatemoney/models.py @@ -34,6 +34,7 @@ class Project(db.Model): "name": self.name, "contact_email": self.contact_email, "members": [], + "default_currency": self.default_currency, } balance = self.balance @@ -376,6 +377,8 @@ class Bill(db.Model): "creation_date": self.creation_date, "what": self.what, "external_link": self.external_link, + "original_currency": self.original_currency, + "original_amount": self.original_amount, } def pay_each(self):