Commit a8b89ca8 authored by Hinrikus Wolf's avatar Hinrikus Wolf

make create topic easier

parent 88be719a
......@@ -165,7 +165,7 @@ def topic_new():
topic = Topic(form.name.data, form.mode.data, form.event_id.data)
db.session.add(topic)
db.session.commit()
return redirect(url_for(".event", id=topic.event.id))
return redirect(url_for(".event_show", id=topic.event.id))
event_id = request.args.get("event_id", None)
if event_id is None:
return redirect(url_for(".index"))
......
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