aboutsummaryrefslogtreecommitdiff
path: root/budget
diff options
context:
space:
mode:
Diffstat (limited to 'budget')
-rw-r--r--budget/forms.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/budget/forms.py b/budget/forms.py
index 7d6eb51..4b59a36 100644
--- a/budget/forms.py
+++ b/budget/forms.py
@@ -143,9 +143,7 @@ class BillForm(Form):
self.payed_for.data = self.payed_for.default
def validate_amount(self, field):
- if field.data < 0:
- field.data = abs(field.data)
- elif field.data == 0:
+ if field.data == 0:
raise ValidationError(_("Bills can't be null"))