From afc93531809913660c3e08b661bc3b1e4b3ddd2d Mon Sep 17 00:00:00 2001 From: Leo Mouyna Date: Sat, 28 Sep 2019 14:16:42 +0200 Subject: feat: Optional field 'external link' in bill form. An optional field has been added to the bill form to add a link to a real bill. A new action button allow user to see this bill. Breaking change with Bill model update for database, a migration is needed. See issue #429. --- ihatemoney/models.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'ihatemoney/models.py') diff --git a/ihatemoney/models.py b/ihatemoney/models.py index 325cf57..48e16a7 100644 --- a/ihatemoney/models.py +++ b/ihatemoney/models.py @@ -327,6 +327,7 @@ class Bill(db.Model): date = db.Column(db.Date, default=datetime.now) creation_date = db.Column(db.Date, default=datetime.now) what = db.Column(db.UnicodeText) + external_link = db.Column(db.UnicodeText) archive = db.Column(db.Integer, db.ForeignKey("archive.id")) @@ -340,6 +341,7 @@ class Bill(db.Model): "date": self.date, "creation_date": self.creation_date, "what": self.what, + "external_link": self.external_link, } def pay_each(self): -- cgit v1.1