Skip to content
Snippets Groups Projects
Commit 2a8a636d authored by Robin Sonnabend's avatar Robin Sonnabend
Browse files

Small fixes for using start_time

parent d5efed83
Branches
No related tags found
No related merge requests found
......@@ -484,7 +484,6 @@ def new_protocol():
flash("Dir fehlen die nötigen Zugriffsrechte.", "alert-error")
return redirect(request.args.get("next") or url_for("index"))
protocol = Protocol(protocoltype_id=protocoltype.id)
print(form.start_time.data)
form.populate_obj(protocol)
if form.start_time.data is None:
protocol.start_time = protocoltype.usual_time
......
......@@ -82,7 +82,7 @@
{% endif %}
{% else %}
{% if protocol.date is not none %}
<p><strong>Geplant:</strong> {{protocol.date|datify_long}}, {{protocol.start_time|timify}}</p>
<p><strong>Geplant:</strong> {{protocol.date|datify_long}}, {{protocol.get_time()|timify}}</p>
{% endif %}
{% for meta in protocol.metas %}
<p><strong>{{meta.name}}:</strong> {{meta.value}}</p>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment