show vendor name
This commit is contained in:
parent
b5223ca8cb
commit
c4996cf8d2
2 changed files with 4 additions and 1 deletions
|
|
@ -12,6 +12,9 @@ class Vendor(db.Model):
|
|||
|
||||
def get_line_items(self):
|
||||
return db.session.execute(select(LineItem).where(LineItem.vendor_id==self.id)).all()
|
||||
|
||||
def __repr__(self) -> str:
|
||||
return f'{self.name}'
|
||||
|
||||
class BudgetCategory(db.Model):
|
||||
__tablename__ = 'budget_category'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue