Skip to content
Snippets Groups Projects
Commit a8b89ca8 authored by Hinrikus Wolf's avatar Hinrikus Wolf
Browse files

make create topic easier

parent 88be719a
No related branches found
No related tags found
No related merge requests found
...@@ -165,7 +165,7 @@ def topic_new(): ...@@ -165,7 +165,7 @@ def topic_new():
topic = Topic(form.name.data, form.mode.data, form.event_id.data) topic = Topic(form.name.data, form.mode.data, form.event_id.data)
db.session.add(topic) db.session.add(topic)
db.session.commit() 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) event_id = request.args.get("event_id", None)
if event_id is None: if event_id is None:
return redirect(url_for(".index")) return redirect(url_for(".index"))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment