From c4c2efe44ec3b4e2a7783c520f666af9f20a8a3a Mon Sep 17 00:00:00 2001 From: Maja Massarini Date: Fri, 12 Jul 2024 15:15:54 +0200 Subject: [PATCH] frontend: align delete_after_days validators Synchronizing defaults of two forms. Should fix https://github.com/packit/packit-service/issues/2446 --- frontend/coprs_frontend/coprs/forms.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/coprs_frontend/coprs/forms.py b/frontend/coprs_frontend/coprs/forms.py index f217b90c5..4ded470c6 100644 --- a/frontend/coprs_frontend/coprs/forms.py +++ b/frontend/coprs_frontend/coprs/forms.py @@ -744,7 +744,7 @@ class F(CoprForm): "Delete after days", validators=[ wtforms.validators.Optional(), - wtforms.validators.NumberRange(min=0, max=60), + wtforms.validators.NumberRange(min=-1, max=720), ], render_kw={'disabled': bool(copr and copr.persistent)})