Fix authorized overdraft validation.

This commit is contained in:
Alexis Lahouze 2015-08-13 10:56:17 +02:00
parent 7d2d21deb8
commit 642b8c5b98

View File

@ -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