Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
protokollsystem
proto3
Commits
12015614
Commit
12015614
authored
Apr 14, 2017
by
Robin Sonnabend
Browse files
Don't throw an exception after deleting default tops
/close
#86
parent
e696b9cd
Changes
1
Hide whitespace changes
Inline
Side-by-side
server.py
View file @
12015614
...
...
@@ -342,7 +342,7 @@ def edit_default_top(protocoltype, defaulttop):
def
delete_default_top
(
defaulttop
):
db
.
session
.
delete
(
defaulttop
)
db
.
session
.
commit
()
return
redirect
(
request
.
args
.
get
(
"next"
)
or
url_for
(
"show_type"
,
protocoltype_id
=
protocoltype
.
id
))
return
redirect
(
request
.
args
.
get
(
"next"
)
or
url_for
(
"show_type"
,
protocoltype_id
=
defaulttop
.
protocoltype
.
id
))
@
app
.
route
(
"/type/tops/move/<int:defaulttop_id>/<diff>/"
)
@
login_required
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment