Fix authorized overdraft validation.
This commit is contained in:
parent
7d2d21deb8
commit
642b8c5b98
@ -111,6 +111,6 @@ class Account(db.Model):
|
|||||||
|
|
||||||
@validates('authorized_overdraft')
|
@validates('authorized_overdraft')
|
||||||
def validate_authorized_overdraft(self, key, authorized_overdraft):
|
def validate_authorized_overdraft(self, key, authorized_overdraft):
|
||||||
assert authorized_overdraft > 0
|
assert authorized_overdraft <= 0
|
||||||
|
|
||||||
return authorized_overdraft
|
return authorized_overdraft
|
||||||
|
Loading…
Reference in New Issue
Block a user