From 945e6529f59dec65477c8ebbcae45504adbd9d92 Mon Sep 17 00:00:00 2001 From: oysteini Date: Sun, 16 May 2010 18:36:10 +0000 Subject: [PATCH] Fikset feil i Purchase.__repr__ (den refererte til ting som ikke finnes lenger). --- db.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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