Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Odevzdávací Systém MO
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Model registry
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Martin Mareš
Odevzdávací Systém MO
Commits
3d107400
Commit
3d107400
authored
4 months ago
by
Martin Mareš
Browse files
Options
Downloads
Patches
Plain Diff
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
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
mo/web/org_certs.py
+3
-0
3 additions, 0 deletions
mo/web/org_certs.py
with
3 additions
and
0 deletions
mo/web/org_certs.py
+
3
−
0
View file @
3d107400
...
...
@@ -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
:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment