Skip to content

Instantly share code, notes, and snippets.

@kergalym
Created April 14, 2017 12:11
Show Gist options
  • Save kergalym/0ab3d672ea6d80aff4ac64984c216573 to your computer and use it in GitHub Desktop.
Save kergalym/0ab3d672ea6d80aff4ac64984c216573 to your computer and use it in GitHub Desktop.
В шаблоне:
<td><input type='text' id='delid_{{ article.id }}' name='delid_{{ article.id }}' value='{{ article.id }}' size='1' ></td>
В wtf-forms:
delid + "_" + article.id = TextField('delid' + "_" + article.id, validators=[DataRequired()])
В views:
request.form['delid' + "_" + item]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment