diff --git a/mo/web/org_certs.py b/mo/web/org_certs.py index 42a8a0884351fef9ca543ccfb685a59f65f64f80..7c6dc6cdf4f29fef863abbfa0754c78ef0648127 100644 --- a/mo/web/org_certs.py +++ b/mo/web/org_certs.py @@ -80,6 +80,9 @@ class CertSetForm(FlaskForm): delete = wtforms.SubmitField("Smazat diplomy") def osmo_validate(self, cset) -> bool: + if self.delete.data: + return True + ok = True if self.background_type.data == BackgroundType.custom and self.upload_background.data is None and not cset.background_file: