|
|
@ -63,7 +63,7 @@ def manage_tags(page):
|
|
|
|
@admin_required
|
|
|
|
@admin_required
|
|
|
|
def modify_user():
|
|
|
|
def modify_user():
|
|
|
|
form = UserForm(request.form)
|
|
|
|
form = UserForm(request.form)
|
|
|
|
flash(str(request.form))
|
|
|
|
# flash(str(request.form))
|
|
|
|
if form.validate():
|
|
|
|
if form.validate():
|
|
|
|
if form.create.data:
|
|
|
|
if form.create.data:
|
|
|
|
el = User(username=form.username.data)
|
|
|
|
el = User(username=form.username.data)
|
|
|
@ -100,7 +100,7 @@ def modify_user():
|
|
|
|
@moderator_required
|
|
|
|
@moderator_required
|
|
|
|
def modify_post():
|
|
|
|
def modify_post():
|
|
|
|
form = PostForm(request.form)
|
|
|
|
form = PostForm(request.form)
|
|
|
|
flash(str(request.form))
|
|
|
|
# flash(str(request.form))
|
|
|
|
if form.validate():
|
|
|
|
if form.validate():
|
|
|
|
if form.create.data:
|
|
|
|
if form.create.data:
|
|
|
|
pass
|
|
|
|
pass
|
|
|
@ -126,7 +126,7 @@ def modify_post():
|
|
|
|
@moderator_required
|
|
|
|
@moderator_required
|
|
|
|
def modify_tag():
|
|
|
|
def modify_tag():
|
|
|
|
form = TagForm(request.form)
|
|
|
|
form = TagForm(request.form)
|
|
|
|
flash(str(request.form))
|
|
|
|
# flash(str(request.form))
|
|
|
|
if form.validate():
|
|
|
|
if form.validate():
|
|
|
|
if form.create.data:
|
|
|
|
if form.create.data:
|
|
|
|
el = Tag(content_deser=form.content.data)
|
|
|
|
el = Tag(content_deser=form.content.data)
|
|
|
@ -157,7 +157,7 @@ def modify_tag():
|
|
|
|
@login_required
|
|
|
|
@login_required
|
|
|
|
def modify_comment():
|
|
|
|
def modify_comment():
|
|
|
|
form = CommentForm(request.form)
|
|
|
|
form = CommentForm(request.form)
|
|
|
|
flash(str(request.form))
|
|
|
|
# flash(str(request.form))
|
|
|
|
if form.validate():
|
|
|
|
if form.validate():
|
|
|
|
if form.create.data:
|
|
|
|
if form.create.data:
|
|
|
|
el = Comment(content=form.content.data, post_id=form.post_id.data, user=current_user)
|
|
|
|
el = Comment(content=form.content.data, post_id=form.post_id.data, user=current_user)
|
|
|
|