mirror of
https://github.com/spiral-project/ihatemoney.git
synced 2025-05-06 13:01:50 +02:00
Added new fields to to_serialize()
This commit is contained in:
parent
65cdfe5155
commit
c79c60423a
1 changed files with 3 additions and 0 deletions
|
@ -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):
|
||||
|
|
Loading…
Reference in a new issue