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

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

parent 21d56b23
Branches
No related tags found
No related merge requests found
......@@ -80,7 +80,7 @@ class CertSetForm(FlaskForm):
delete = wtforms.SubmitField("Smazat diplomy")
def osmo_validate(self, cset) -> bool:
if self.delete.data:
if (delete := getattr(self, 'delete')) is not None and delete.data:
return True
ok = True
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment