Commit 181b0362 authored by Administrator's avatar Administrator
Browse files

Enable adding default tops

parent 247c0d90
......@@ -326,7 +326,7 @@ def new_default_top(protocoltype):
for protocol in protocoltype.protocols:
if not protocol.done:
localtop = LocalTOP(protocol_id=protocol.id,
defaulttop_id=defaultop.id, description="")
defaulttop_id=defaulttop.id, description="")
db.session.add(localtop)
db.session.commit()
flash("Der Standard-TOP {} wurde für dem Protokolltyp {} hinzugefügt.".format(defaulttop.name, protocoltype.name), "alert-success")
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment