summaryrefslogtreecommitdiffstats
path: root/bitvend/models.py
diff options
context:
space:
mode:
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")
)