diff --git a/db.py b/db.py index 1b4f617..68057f9 100644 --- a/db.py +++ b/db.py @@ -111,7 +111,7 @@ class Purchase(Base): pass def __repr__(self): - return "" % (self.user.name, self.price, self.time.strftime('%c')) + return "" % (self.id, self.price, self.time.strftime('%c')) def is_complete(self): return len(self.transactions) > 0 and len(self.entries) > 0