From 642b8c5b984642a0d7289ade11a1aa1507404783 Mon Sep 17 00:00:00 2001 From: Alexis Lahouze Date: Thu, 13 Aug 2015 10:56:17 +0200 Subject: [PATCH] Fix authorized overdraft validation. --- accountant/api/models/accounts.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/accountant/api/models/accounts.py b/accountant/api/models/accounts.py index d5dfb0e..ee01ff0 100644 --- a/accountant/api/models/accounts.py +++ b/accountant/api/models/accounts.py @@ -111,6 +111,6 @@ class Account(db.Model): @validates('authorized_overdraft') def validate_authorized_overdraft(self, key, authorized_overdraft): - assert authorized_overdraft > 0 + assert authorized_overdraft <= 0 return authorized_overdraft