aboutsummaryrefslogtreecommitdiff
path: root/budget/models.py
diff options
context:
space:
mode:
authorAlexis Metaireau <alexis@notmyidea.org>2011-07-31 00:41:28 +0200
committerAlexis Metaireau <alexis@notmyidea.org>2011-07-31 00:41:28 +0200
commit2df6e11f05eff9bd855079097aa865f52689d7ca (patch)
tree6de593b6d68b2ee91c211af71a3168ba261293cf /budget/models.py
parent3bbc3343a2409de3cccdd7f50360e631224bf066 (diff)
downloadihatemoney-mirror-2df6e11f05eff9bd855079097aa865f52689d7ca.zip
ihatemoney-mirror-2df6e11f05eff9bd855079097aa865f52689d7ca.tar.gz
ihatemoney-mirror-2df6e11f05eff9bd855079097aa865f52689d7ca.tar.bz2
Adding a bill is now working properly
Diffstat (limited to 'budget/models.py')
-rw-r--r--budget/models.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/budget/models.py b/budget/models.py
index c0d6db2..bf9ad92 100644
--- a/budget/models.py
+++ b/budget/models.py
@@ -24,6 +24,9 @@ class Person(db.Model):
name = db.Column(db.UnicodeText)
# activated = db.Column(db.Boolean, default=True)
+ def __str__(self):
+ return self.name
+
def __repr__(self):
return "<Person %s for project %s>" % (self.name, self.project.name)