add delete post route
This commit is contained in:
@@ -192,4 +192,4 @@ def new_post():
|
||||
content = request.form.get('babycode_content')
|
||||
|
||||
thread = Threads.new(user.id, topic.id, title, content)
|
||||
return redirect(url_for('.thread', slug=thread.slug))
|
||||
return redirect(url_for('.thread_by_id', thread_id=thread.id))
|
||||
|
||||
Reference in New Issue
Block a user