1
1
Fork 0

Manage remove debug flash

dev
Jan Kužílek 5 years ago
parent c32b0ac380
commit e7c334e5b0

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

Loading…
Cancel
Save