summaryrefslogtreecommitdiffstats
path: root/bitvend/models.py
diff options
context:
space:
mode:
authorPiotr Dobrowolski <admin@tastycode.pl>2017-04-07 17:34:09 +0200
committerPiotr Dobrowolski <admin@tastycode.pl>2017-04-07 17:34:09 +0200
commit23370b41d9abd22ba82028f2b3a3832593e71acd (patch)
treeda2c9f646f0c93fc552d409b614d7b20b7b5f483 /bitvend/models.py
parent30b8bfbadae4dde9e3f6101ecc74dabe335c19d5 (diff)
downloadbitvend-23370b41d9abd22ba82028f2b3a3832593e71acd.tar.gz
bitvend-23370b41d9abd22ba82028f2b3a3832593e71acd.tar.bz2
bitvend-23370b41d9abd22ba82028f2b3a3832593e71acd.tar.xz
bitvend-23370b41d9abd22ba82028f2b3a3832593e71acd.zip
Templates cleanup, pagination, transactions list, hallofshame
Diffstat (limited to 'bitvend/models.py')
-rw-r--r--bitvend/models.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bitvend/models.py b/bitvend/models.py
index bab5836..21a9891 100644
--- a/bitvend/models.py
+++ b/bitvend/models.py
@@ -27,7 +27,7 @@ class User(db.Model):
@balance.expression
def balance(self):
return (select([func.sum(Transaction.amount)]).
- where(Transaction.uid == cls.uid).
+ where(Transaction.uid == User.uid).
label("balance")
)