A
через теже принты
чё мб там есть файлнейм какой-то
Size: a a a
A
ИХ
@expose("/edit/<int:tag_id>", methods=["GET", "POST"])
def edit(self, tag_id):
tag = session.query(Tag).filter_by(id=tag_id).one()
if tag:
form = TagAddForm(obj=tag)
if request.method == 'POST' and form.validate():
/// some code
session.commit()
return redirect(url_for('TagView.tag_list'))
else:
return render_template('edit_tag.html', title='', form=form, tag=tag)
else:
return 'Error loading #{id}'.format(id=tag_id)
формаTagAddForm(FlaskForm):
tag_name = StringField('name', validators=[DataRequired()])
description = StringField('description')
submit = SubmitField('Save')
{{ form.tag_name(class_='form-control') }}АП
@expose("/edit/<int:tag_id>", methods=["GET", "POST"])
def edit(self, tag_id):
tag = session.query(Tag).filter_by(id=tag_id).one()
if tag:
form = TagAddForm(obj=tag)
if request.method == 'POST' and form.validate():
/// some code
session.commit()
return redirect(url_for('TagView.tag_list'))
else:
return render_template('edit_tag.html', title='', form=form, tag=tag)
else:
return 'Error loading #{id}'.format(id=tag_id)
формаTagAddForm(FlaskForm):
tag_name = StringField('name', validators=[DataRequired()])
description = StringField('description')
submit = SubmitField('Save')
{{ form.tag_name(class_='form-control') }}Д
ᅠᅠ
ᅠᅠ
ᅠᅠ
E
V
ИХ
АП
ИХ
АП
ИХ
АП
E
АП
A(
@expose("/edit/<int:tag_id>", methods=["GET", "POST"])
def edit(self, tag_id):
tag = session.query(Tag).filter_by(id=tag_id).one()
if tag:
form = TagAddForm(obj=tag)
if request.method == 'POST' and form.validate():
/// some code
session.commit()
return redirect(url_for('TagView.tag_list'))
else:
return render_template('edit_tag.html', title='', form=form, tag=tag)
else:
return 'Error loading #{id}'.format(id=tag_id)
формаTagAddForm(FlaskForm):
tag_name = StringField('name', validators=[DataRequired()])
description = StringField('description')
submit = SubmitField('Save')
{{ form.tag_name(class_='form-control') }}A(

п