Skip to content
Snippets Groups Projects
Commit 3d107400 authored by Martin Mareš's avatar Martin Mareš
Browse files

Diplomy/UI: "Smazat diplomy" lze i s nekorektně vyplněným formulářem

parent f28266e2
No related branches found
No related tags found
No related merge requests found
......@@ -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:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment