From 81e228ae4fb376453560d531e08d39f814452e3b Mon Sep 17 00:00:00 2001 From: Spraynard Date: Wed, 3 Jan 2024 12:11:05 -0500 Subject: [PATCH] Add default Officer Overtime value (#1083) ## Fixes issue #856 ## Description of Changes Adds default of $0 in officer "Overtime Pay" field. Users don't have to fill this in if they don't have any overtime pay information and use the form faster! ## Testing and Linting - [x] This branch is up-to-date with the `develop` branch. - [x] `pytest` passes on my local development environment. - [x] `pre-commit` passes on my local development environment. --- OpenOversight/app/main/forms.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/OpenOversight/app/main/forms.py b/OpenOversight/app/main/forms.py index 7b40df98f..85cf25175 100644 --- a/OpenOversight/app/main/forms.py +++ b/OpenOversight/app/main/forms.py @@ -171,7 +171,9 @@ class SalaryForm(Form): "Salary", validators=[NumberRange(min=0, max=1000000), validate_money] ) overtime_pay = DecimalField( - "Overtime Pay", validators=[NumberRange(min=0, max=1000000), validate_money] + "Overtime Pay", + default=0, + validators=[NumberRange(min=0, max=1000000), validate_money], ) year = IntegerField( "Year",